# New Ticket Created by  Zefram 
# Please include the string:  [perl #128977]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128977 >


> 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

Reply via email to