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
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
>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)
(printf "still there? ~s\n" (weak-box-value wb)))
Specifically, it will show tha
3 matches
Mail list logo