> On 2/11/19 3:27 AM, Timo Paulssen wrote:
> > WHICH doesn't give you a numerical value. just print it as it is.
>
>
> $ p6 'sub a (Buf $b) { say $b.WHICH }; my $c = Buf.new(1,2,3); say
> $c.WHICH; a($c);'
> Buf|71848984
> Buf|71848984
>
> If "moarvm has a moving garbage collector" moves my 100 MB+ buffer
> around, "I am in a heap of trouble".
The buffer lives one indirection (aka pointer) away from the part that
is garbage-collector managed, so moving the object doesn't make a
difference here, luckily.

Reply via email to