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

'say (my $a) = 1, 2, 3' parses as '(say my $a) = 1, 2, 3' in Rakudo (but as 'say ((my $a) = 1, 2, 3)' in STD.pm6) #1923

Closed
p6rt opened this issue Jul 10, 2010 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jul 10, 2010

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

Searchable as RT76444$

@p6rt
Copy link
Author

p6rt commented Jul 10, 2010

From @masak

<masak> rakudo​: say (my $a) = 1,2,3; say $a # discovered by TimToady++
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> did it ever get reported?
<jnthn> rakudo​: say ((my $a) = 1,2,3);
<p6eval> rakudo 692aa1​: OUTPUT«1 2 3␤»
<jnthn> rakudo​: (say (my $a)) = 1,2,3;
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> ah.
<jnthn> It's only a bug if it's not meant to have parsed as the second of those.
* masak asks viv
<masak> viv puts the 'say' outermost. http://gist.github.com/470719
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

From @coke

On Sat Jul 10 07​:02​:24 2010, masak wrote​:

<masak> rakudo​: say (my $a) = 1,2,3; say $a # discovered by TimToady++
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> did it ever get reported?
<jnthn> rakudo​: say ((my $a) = 1,2,3);
<p6eval> rakudo 692aa1​: OUTPUT«1 2 3␤»
<jnthn> rakudo​: (say (my $a)) = 1,2,3;
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> ah.
<jnthn> It's only a bug if it's not meant to have parsed as the second
of those.
* masak asks viv
<masak> viv puts the 'say' outermost. http://gist.github.com/470719
* masak submits rakudobug

20​:16 < [Coke]> rakudo​: say (my $a) = 1,2,3; say $a
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤1 2 3␤»
20​:16 < [Coke]> rakudo​: say ((my $a) = 1,2,3);
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤»
20​:17 < [Coke]> rakudo​: (say (my $a)) = 1,2,3;
20​:17 <+p6eval> rakudo 38165a​: OUTPUT«Any()␤Cannot assign to a non-container␤
  in block <anon> at /tmp/df58A5abKz​:1␤ in <anon> at
  /tmp/df58A5abKz​:1␤»

Closable?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

From @masak

On Tue Jan 10 17​:17​:55 2012, coke wrote​:

On Sat Jul 10 07​:02​:24 2010, masak wrote​:

<masak> rakudo​: say (my $a) = 1,2,3; say $a # discovered by
TimToady++
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> did it ever get reported?
<jnthn> rakudo​: say ((my $a) = 1,2,3);
<p6eval> rakudo 692aa1​: OUTPUT«1 2 3␤»
<jnthn> rakudo​: (say (my $a)) = 1,2,3;
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> ah.
<jnthn> It's only a bug if it's not meant to have parsed as the
second
of those.
* masak asks viv
<masak> viv puts the 'say' outermost. http://gist.github.com/470719
* masak submits rakudobug

20​:16 < [Coke]> rakudo​: say (my $a) = 1,2,3; say $a
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤1 2 3␤»
20​:16 < [Coke]> rakudo​: say ((my $a) = 1,2,3);
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤»
20​:17 < [Coke]> rakudo​: (say (my $a)) = 1,2,3;
20​:17 <+p6eval> rakudo 38165a​: OUTPUT«Any()␤Cannot assign to a non-
container␤
in block <anon> at /tmp/df58A5abKz​:1␤ in <anon> at
/tmp/df58A5abKz​:1␤»

Closable?

Aye. Does it need a spectest? Marking as needstest just in case.

@p6rt
Copy link
Author

p6rt commented Jan 25, 2014

From @peschwa

Am Mi 11. Jan 2012, 02​:09​:13, masak schrieb​:

On Tue Jan 10 17​:17​:55 2012, coke wrote​:

On Sat Jul 10 07​:02​:24 2010, masak wrote​:

<masak> rakudo​: say (my $a) = 1,2,3; say $a # discovered by
TimToady++
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> did it ever get reported?
<jnthn> rakudo​: say ((my $a) = 1,2,3);
<p6eval> rakudo 692aa1​: OUTPUT«1 2 3␤»
<jnthn> rakudo​: (say (my $a)) = 1,2,3;
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> ah.
<jnthn> It's only a bug if it's not meant to have parsed as the
second
of those.
* masak asks viv
<masak> viv puts the 'say' outermost. http://gist.github.com/470719
* masak submits rakudobug

20​:16 < [Coke]> rakudo​: say (my $a) = 1,2,3; say $a
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤1 2 3␤»
20​:16 < [Coke]> rakudo​: say ((my $a) = 1,2,3);
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤»
20​:17 < [Coke]> rakudo​: (say (my $a)) = 1,2,3;
20​:17 <+p6eval> rakudo 38165a​: OUTPUT«Any()␤Cannot assign to a non-
container␤
in block <anon> at /tmp/df58A5abKz​:1␤ in <anon> at
/tmp/df58A5abKz​:1␤»

Closable?

Aye. Does it need a spectest? Marking as needstest just in case.

Added a test to roast in commit e951886 as per the example above.

@p6rt
Copy link
Author

p6rt commented Jan 26, 2014

From @peschwa

Am Sa 25. Jan 2014, 15​:56​:01, peschwa@​gmail.com schrieb​:

Am Mi 11. Jan 2012, 02​:09​:13, masak schrieb​:

On Tue Jan 10 17​:17​:55 2012, coke wrote​:

On Sat Jul 10 07​:02​:24 2010, masak wrote​:

<masak> rakudo​: say (my $a) = 1,2,3; say $a # discovered by
TimToady++
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> did it ever get reported?
<jnthn> rakudo​: say ((my $a) = 1,2,3);
<p6eval> rakudo 692aa1​: OUTPUT«1 2 3␤»
<jnthn> rakudo​: (say (my $a)) = 1,2,3;
<p6eval> rakudo 692aa1​: OUTPUT«Any()␤»
<masak> ah.
<jnthn> It's only a bug if it's not meant to have parsed as the
second
of those.
* masak asks viv
<masak> viv puts the 'say' outermost. http://gist.github.com/470719
* masak submits rakudobug

20​:16 < [Coke]> rakudo​: say (my $a) = 1,2,3; say $a
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤1 2 3␤»
20​:16 < [Coke]> rakudo​: say ((my $a) = 1,2,3);
20​:16 <+p6eval> rakudo 38165a​: OUTPUT«1 2 3␤»
20​:17 < [Coke]> rakudo​: (say (my $a)) = 1,2,3;
20​:17 <+p6eval> rakudo 38165a​: OUTPUT«Any()␤Cannot assign to a non-
container␤
in block <anon> at /tmp/df58A5abKz​:1␤ in <anon> at
/tmp/df58A5abKz​:1␤»

Closable?

Aye. Does it need a spectest? Marking as needstest just in case.

Added a test to roast in commit e951886 as per the example above.

...and corrected it in commit 7af18f0.

@p6rt p6rt closed this as completed Jan 26, 2014
@p6rt
Copy link
Author

p6rt commented Jan 26, 2014

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