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

The order is wrong with some placeholder variables in Rakudo #2478

Closed
p6rt opened this issue Sep 21, 2011 · 5 comments
Closed

The order is wrong with some placeholder variables in Rakudo #2478

p6rt opened this issue Sep 21, 2011 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 21, 2011

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

Searchable as RT99734$

@p6rt
Copy link
Author

p6rt commented Sep 21, 2011

From @masak

<im2ee> rakudo​: sub foo { say "$^a is $^b and $^c" }; foo "cake",
"tasty", "so on";
<p6eval> rakudo a979de​: OUTPUT«cake is tasty and so on␤»
<masak> :)
<masak> rakudo​: sub foo { say "$^c is $^a and $^b" }; foo "cake",
"tasty", "so on";
<p6eval> rakudo a979de​: OUTPUT«tasty is cake and so on␤»
<masak> o.O
* masak submits rakudobug

I'd have expected that last one to come out as "so on is cake and
tasty". Hence the bulging eye.

@p6rt
Copy link
Author

p6rt commented Sep 28, 2011

From @jnthn

On Wed Sep 21 12​:58​:46 2011, masak wrote​:

<im2ee> rakudo​: sub foo { say "$^a is $^b and $^c" }; foo "cake",
"tasty", "so on";
<p6eval> rakudo a979de​: OUTPUT«cake is tasty and so on␤»
<masak> :)
<masak> rakudo​: sub foo { say "$^c is $^a and $^b" }; foo "cake",
"tasty", "so on";
<p6eval> rakudo a979de​: OUTPUT«tasty is cake and so on␤»
<masak> o.O
* masak submits rakudobug

I'd have expected that last one to come out as "so on is cake and
tasty". Hence the bulging eye.

sub foo { say "$^c is $^a and $^b" }; foo "cake", "tasty", "so on";
so on is cake and tasty

Just needs tests.

/jnthn

@p6rt
Copy link
Author

p6rt commented Sep 28, 2011

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

@p6rt
Copy link
Author

p6rt commented Sep 28, 2011

From @jnthn

Test added by tadzik++.

@p6rt
Copy link
Author

p6rt commented Sep 28, 2011

@jnthn - 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