# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #74490]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74490 >


<moritz_> rakudo: class A { say (method foo { 23 }).WHAT };
<p6eval> rakudo 538606: OUTPUT«Code()␤»
<moritz_> rakudo: class A { say (method foo { 23 }) ~~ Routine };
<p6eval> rakudo 538606: OUTPUT«0␤»
<moritz_> I'm pretty sure that's wrong
<masak> rakudo: say (method { 23 }).WHAT
<p6eval> rakudo 538606: OUTPUT«Method()␤»
<masak> o.O
<masak> so... an anon method gets to be a Method.
<masak> but a named method is just Code?
<moritz_> that's just weird and wrong :-)
* masak submits rakudobug
<moritz_> you know, if it's not ~~ Routine, then return() should pass
through its boundaries
<masak> aye.
<jnthn> Yes, "just Code" is wrong
<jnthn> (I know why we get that one wrong, though)

Reply via email to