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
> (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
2 matches
Mail list logo