develooper Front page | perl.perl6.compiler | Postings from June 2012

[perl #113548] LEAVE phasers in multi subs do not fire

From:
Moritz Lenz
Date:
June 7, 2012 13:52
Subject:
[perl #113548] LEAVE phasers in multi subs do not fire
Message ID:
rt-3.6.HEAD-5009-1339102370-1875.113548-82-0@perl.org
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #113548]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=113548 >


<not_gerd> r: multi sub foo() { say 'here'; LEAVE say 'not here'; }; foo;
<p6eval> rakudo 332540: OUTPUT«here␤»

Works without the "multi":

<moritz> r: sub foo() { say 'here'; LEAVE say 'not here' }; foo;
<p6eval> rakudo 332540: OUTPUT«here␤not here␤»



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About