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

STD warns about no-argument use of 'set' listop, Rakudo doesn't #3135

Closed
p6rt opened this issue May 14, 2013 · 4 comments
Closed

STD warns about no-argument use of 'set' listop, Rakudo doesn't #3135

p6rt opened this issue May 14, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented May 14, 2013

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

Searchable as RT117997$

@p6rt
Copy link
Author

p6rt commented May 14, 2013

From @masak

<TimToady> std​: set<a b c>;
<camelia> std e2a36d8​: OUTPUT«===SORRY!===␤The 'set' listop may not be
called without arguments (please use () or whitespace to clarify) at
/tmp/PADZ4qSrTX line 1​:␤------> set⏏<a b c>;␤Potential difficulties​:␤
Use of non-subscript <...> where postfix is expec…
<TimToady> std​: set;
<camelia> std e2a36d8​: OUTPUT«===SORRY!===␤The 'set' listop may not be
called without arguments (please use () or whitespace to clarify) at
/tmp/t3YsN5H42z line 1​:␤------> set⏏;␤Check failed␤FAILED 00​:00 41m␤»
<TimToady> std​: set();
<camelia> std e2a36d8​: OUTPUT«ok 00​:00 41m␤»
<masak> rn​: set<a b c>;
<camelia> rakudo 170856, niecza v24-51-g009f999​: ( no output )
* masak submits rakudobug
<masak> rn​: set;
<camelia> rakudo 170856, niecza v24-51-g009f999​: ( no output )

@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

From @usev6

Rakudo (on Moar, Parrot and JVM) now gives the same error as STD​:

$ perl6 -e 'set;'
===SORRY!=== Error while compiling -e
The 'set' listop may not be called without arguments (please use () or whitespace to clarify)
at -e​:1
------> set⏏;
  expecting any of​:
  argument list

$ perl6 -e 'set<a b c>;'
===SORRY!===
The 'set' listop may not be called without arguments (please use () or whitespace to clarify)
at -e​:1
------> set⏏<a b c>;
  expecting any of​:
  argument list
Other potential difficulties​:
  Use of non-subscript <...> where postfix is expected; please use whitespace
  at -e​:1
  ------> set⏏<a b c>;

I added two tests to S03-operators/set.t with the following commit​: Raku/roast@d45a07596b

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

From @usev6

Rakudo (on Moar, Parrot and JVM) now gives the same error as STD​:

$ perl6 -e 'set;'
===SORRY!=== Error while compiling -e
The 'set' listop may not be called without arguments (please use () or whitespace to clarify)
at -e​:1
------> set⏏;
  expecting any of​:
  argument list

$ perl6 -e 'set<a b c>;'
===SORRY!===
The 'set' listop may not be called without arguments (please use () or whitespace to clarify)
at -e​:1
------> set⏏<a b c>;
  expecting any of​:
  argument list
Other potential difficulties​:
  Use of non-subscript <...> where postfix is expected; please use whitespace
  at -e​:1
  ------> set⏏<a b c>;

I added two tests to S03-operators/set.t with the following commit​: Raku/roast@d45a07596b

@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

@usev6 - Status changed from 'new' 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