>>>>> "Taylor" == Taylor Campbell <spam.address@dont.use> writes:
Taylor> This is a bit more of a Scheme48 question than scsh in specific, but
Taylor> since I already subscribe to this newsgroup and no Scheme48 mailing
Taylor> lists, I might as well ask it here.
Taylor> Is there any way in specific I should create a weak hash table, similar
Taylor> to those in PLT, i.e., so when the garbage collector hits a certain
Taylor> object in the table but not pointed to anywhere else it will garbage
Taylor> collect it and remove it from the table?
There is no such thing in S48 but in scsh there is a very small
library we use internally. It's definied in scsh/weaktables.scm and
exported in the package weak-tables.
As the comment in the source file already points out, we would need a
more general implementation but didn't have the time to implement
it. Any help is appreciated...
--
Martin
|