Re: [racket-users] Making sure I understand part of the GC docs

2017-11-17 Thread David Storrs
On Fri, Nov 17, 2017 at 9:05 AM, Matthew Flatt wrote: > At Thu, 16 Nov 2017 18:40:14 -0500, David Storrs wrote: >> From the Guide: >> >> --- >> This code [...] has a subtle bug: >> >> #lang racket >> (let* ([fishes (list (fish 8 'red) >> (fish 7 'blue))] >>[wb (mak

Re: [racket-users] Making sure I understand part of the GC docs

2017-11-17 Thread Matthew Flatt
At Thu, 16 Nov 2017 18:40:14 -0500, David Storrs wrote: > From the Guide: > > --- > This code [...] has a subtle bug: > > #lang racket > (let* ([fishes (list (fish 8 'red) > (fish 7 'blue))] >[wb (make-weak-box (list-ref fishes 0))]) > (collect-garbage) > (pri