On Wed, 17 Aug 2016 15:42:04 -0700, zef...@fysh.org wrote:
> > my $a = 3; my $c = \($a); say $c.WHICH; $a = 555; say $c.WHICH
> Capture|(Int|3)
> Capture|(Int|555)
> 
> The Capture's identity, as judged by .WHICH, is apparently changing.
> That should never happen.  To accurately reflect the object identity
> that's in play here, the Capture's .WHICH ought to be something like
> "Capture|(Scalar|47816222142984)".  (Apropos recent discussion of Scalar,
> this isn't to say that the Scalar should be available as an actual object;
> it's just that the Scalar is the seat of the identity that needs to be
> incorporated into the Capture's identity.)
> 
> -zefram


Thank you for the report. This is now fixed.

Fix: https://github.com/rakudo/rakudo/commit/4605d5219e
Tests: https://github.com/perl6/roast/commit/7cf30b225a

Reply via email to