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

Rakudo doesn't handle placeholder parameters quite right #1540

Closed
p6rt opened this issue Feb 26, 2010 · 4 comments
Closed

Rakudo doesn't handle placeholder parameters quite right #1540

p6rt opened this issue Feb 26, 2010 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 26, 2010

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

Searchable as RT73106$

@p6rt
Copy link
Author

p6rt commented Feb 26, 2010

From @masak

<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4); # first of 2
<p6eval> rakudo a215ee​: OUTPUT«Not enough positional parameters
passed; got 1 but expected 2 [...]
<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4, 5); # second of 2
<p6eval> rakudo a215ee​: OUTPUT«10␤»
* masak submits rakudobug

Just to be clear, the first one-liner should not fail, the second
should. Also, in a hypothetical world where the second shouldn't fail,
10 is the wrong answer. It should be 8.

@p6rt
Copy link
Author

p6rt commented May 22, 2010

From @masak

On Thu Feb 25 16​:12​:50 2010, masak wrote​:

<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4); # first of 2
<p6eval> rakudo a215ee​: OUTPUT«Not enough positional parameters
passed; got 1 but expected 2 [...]
<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4, 5); # second of 2
<p6eval> rakudo a215ee​: OUTPUT«10␤»
* masak submits rakudobug

Just to be clear, the first one-liner should not fail, the second
should. Also, in a hypothetical world where the second shouldn't fail,
10 is the wrong answer. It should be 8.

And now, it works. Resolving.

<masak> rakudo​: my $a = sub { say $^a + $^a }; $a(4)
<p6eval> rakudo 9a15b8​: OUTPUT«8␤»
<masak> rakudo​: my $a = sub { say $^a + $^a }; $a(4, 5)
<p6eval> rakudo 9a15b8​: OUTPUT«Too many positional parameters passed; got 2 but
expected 1 [...]

@p6rt
Copy link
Author

p6rt commented May 22, 2010

From [Unknown Contact. See original ticket]

On Thu Feb 25 16​:12​:50 2010, masak wrote​:

<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4); # first of 2
<p6eval> rakudo a215ee​: OUTPUT«Not enough positional parameters
passed; got 1 but expected 2 [...]
<diakopter> rakudo​: my $a = sub { say $^a + $^a }; $a(4, 5); # second of 2
<p6eval> rakudo a215ee​: OUTPUT«10␤»
* masak submits rakudobug

Just to be clear, the first one-liner should not fail, the second
should. Also, in a hypothetical world where the second shouldn't fail,
10 is the wrong answer. It should be 8.

And now, it works. Resolving.

<masak> rakudo​: my $a = sub { say $^a + $^a }; $a(4)
<p6eval> rakudo 9a15b8​: OUTPUT«8␤»
<masak> rakudo​: my $a = sub { say $^a + $^a }; $a(4, 5)
<p6eval> rakudo 9a15b8​: OUTPUT«Too many positional parameters passed; got 2 but
expected 1 [...]

@p6rt
Copy link
Author

p6rt commented May 22, 2010

@masak - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed May 22, 2010
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant