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

$*ARGS not working properly - rakudo regression #1702

Closed
p6rt opened this issue Apr 18, 2010 · 5 comments
Closed

$*ARGS not working properly - rakudo regression #1702

p6rt opened this issue Apr 18, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 18, 2010

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

Searchable as RT74478$

@p6rt
Copy link
Author

p6rt commented Apr 18, 2010

From @finanalyst

April 18. Using git pull version of today
The following test program yields results as lower

use v6;
say "t1";
@​*ARGS.perl.say;

say "t2";
for @​*ARGS { .say }

my @​a = @​*ARGS;

say "t3";
for @​a[ 1 ..^ +@​a ] { .say };
say "t4";
for @​*ARGS[ 1 ..^ +@​*ARGS ] { .say };

<run output>
perl6 test.p6 one two three four
t1
["one", "two", "three", "four"]
t2
one
two
three
four
t3
two
three
four
t4
No applicable candidates found to dispatch to for 'postcircumfix​:<[ ]>'.
Available candidates are​:
:(Mu : Int $i;; *%_)
:(Mu : Block $b;; *%_)
:(Mu : !whatever_dispatch_helper ;; *%_)

current instr.​: '!postcircumfix​:<[ ]>' pc 10686 (src/builtins/Role.pir​:90)
called from Sub '_block14' pc 29 (EVAL_1​:0)
called from Sub '!UNIT_START' pc 1299 (src/glue/run.pir​:24)
called from Sub 'perl6;PCT;HLLCompiler;eval' pc -1 ((unknown file)​:-1)
called from Sub 'perl6;PCT;HLLCompiler;evalfiles' pc 1318
(compilers/pct/src/PCT/HLLCompiler.pir​:714)
called from Sub 'perl6;PCT;HLLCompiler;command_line' pc 1504
(compilers/pct/src/PCT/HLLCompiler.pir​:801)
called from Sub 'perl6;Perl6;Compiler;main' pc -1 ((unknown file)​:-1)

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

From @moritz

Works now in rakudo, just needs some tests.

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

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

@p6rt
Copy link
Author

p6rt commented Dec 18, 2012

From @timo

As of c50e4ea, there are now tests in S02-magical/args.t. Marking as
resolved.

@p6rt
Copy link
Author

p6rt commented Dec 18, 2012

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