[gambit-list] Shouldn't the make-will testator be invoked on process termination too?

Adam adam.mlmb at gmail.com
Fri Dec 18 06:49:37 EST 2015


Marc,

Is there an outer extent on wills' applicability - why don't the second two
gsc runs say OUT on termination?

Thanks,
Adam


$ gsc
> (define a (box 1))
> (make-will a (lambda (v) (print "OUT.\n") (force-output)))
#<will #2>
> (##gc)
> (set! a #f)
> (##gc)
OUT.
> ,q
$ gsc
> (define a (box 1))
> (make-will a (lambda (v) (print "OUT.\n") (force-output)))
#<will #2>
> ,q
$ gsc
> (make-will (box 1) (lambda (v) (print "OUT.\n") (force-output)))
#<will #2>
> ,q
$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20151218/b212680c/attachment-0001.html 


More information about the Gambit-list mailing list