Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.foo method syntax should itemize its return value in Rakudo #2698

Closed
p6rt opened this issue Apr 4, 2012 · 5 comments
Closed

$.foo method syntax should itemize its return value in Rakudo #2698

p6rt opened this issue Apr 4, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 4, 2012

Migrated from rt.perl.org#112236 (status was 'resolved')

Searchable as RT112236$

@p6rt
Copy link
Author

p6rt commented Apr 4, 2012

From @masak

<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

@p6rt
Copy link
Author

p6rt commented Apr 21, 2012

From @jnthn

On Wed Apr 04 05​:28​:04 2012, masak wrote​:

<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

Fixed​:

class A { has @​.a; method sayit { .say for $.a } }; A.new(a => (2, 3,
4)).sayit
2 3 4

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Apr 21, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 22, 2012

From @moritz

now tested in S12-methods/accessors.t

@p6rt
Copy link
Author

p6rt commented Apr 22, 2012

@moritz - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant