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

[perl #112236] [BUG] $.foo method syntax should itemize its return value in Rakudo

From:
Carl Mäsak
Date:
April 4, 2012 05:28
Subject:
[perl #112236] [BUG] $.foo method syntax should itemize its return value in Rakudo
Message ID:
rt-3.6.HEAD-4610-1333542484-1953.112236-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112236]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112236 >


<moritz> p6: class A { has @.a; method sayit { .say for $.a } };
A.new(a => (2, 3, 4)).sayit
<p6eval> pugs, rakudo 4373f0: OUTPUT«2␤3␤4␤»
<p6eval> ..niecza v15-6-gefda208: OUTPUT«2 3 4␤»
<moritz> niecza++ is correct here
<tadzik> indeed
<pmichaud> that should be really easy to fix
<pmichaud> since we already handle $( )   and @( )
<pmichaud> does that have a rakudobug ?
* masak submits this one



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