You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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)
Migrated from rt.perl.org#74490 (status was 'resolved')
Searchable as RT74490$
The text was updated successfully, but these errors were encountered: