Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #117997] [BUG] STD warns about no-argument use of 'set' listop, Rakudo doesn't

3 views
Skip to first unread message

Carl Mäsak

unread,
May 14, 2013, 4:02:56 PM5/14/13
to bugs-bi...@rt.perl.org
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #117997]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117997 >


<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 )

Christian Bartolomaeus via RT

unread,
Oct 15, 2014, 7:30:02 AM10/15/14
to perl6-c...@perl.org
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: https://github.com/perl6/roast/commit/d45a07596b

0 new messages