Re: [racket] Bytes and GC

2014-01-26 Thread Matthew Flatt
At Sun, 26 Jan 2014 09:59:17 +0400, Roman Klochkov wrote: > > > (define a #"abcd") > > (define a0 (cast (cast a _bytes _pointer) _pointer _bytes)) > > (eq? a a0) > #f > > (bytes-set! a0 2 33) > > a > #"ab!d" > > (immutable? a) > #t > So I have two different objects with the same pointer. Will ga

[racket] Bytes and GC

2014-01-25 Thread Roman Klochkov
> (define a #"abcd") > (define a0 (cast (cast a _bytes _pointer) _pointer _bytes)) > (eq? a a0) #f > (bytes-set! a0 2 33) > a #"ab!d" > (immutable? a) #t So I have two different objects with the same pointer. Will garbage collector work correct in this situation? I mean, it should see two refe