[perl #80540] User-defined .ACCEPTS is not called if smart-matching against $_

2010-12-10 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #80540] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=80540 20:19 moritz_ rakudo: class A { method ACCEPTS($x) { say ACCEPTS: $x } }; $_ =

Re: [perl #80540] User-defined .ACCEPTS is not called if smart-matching against $_

2010-12-10 Thread Stefan O'Rear
I'm pretty sure this is correct. ~~ is supposed to temporarily set $_ to the LHS; this is how $obj ~~ .defined works.