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

Placeholder parameters are mixed up with ordinary lexical variables in Rakudo #1776

Closed
p6rt opened this issue May 22, 2010 · 4 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented May 22, 2010

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

Searchable as RT75264$

@p6rt
Copy link
Author

p6rt commented May 22, 2010

From @masak

<isBEKaml> rakudo​: my $a = 1..10; for $^a { .say }
<p6eval> rakudo 9a15b8​: OUTPUT«12345678910␤»
<masak> o.O
* masak submits rakudobug
<isBEKaml> masak​: bug? :O
<masak> rakudo​: my $a = 42; say $^a
<p6eval> rakudo 9a15b8​: OUTPUT«42␤»
<masak> std​: my $a = 42; say $^a
<p6eval> std 30748​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Placeholder
variable $^a cannot be used in this kind of block [...] FAILED 00​:01
115m␤»
<masak> alpha​: my $a = 42; say $^a
<p6eval> alpha 30e0ed​: OUTPUT«42␤»
<masak> huh.

I consider the above to be wrong, because a placeholder parameter $^a
is sufficiently different from an ordinary lexical variable $a that
the former should not be used as a synonym for the latter.

I have the feeling that this ticket might be a duplicate. However, I
haven't been able to locate the better half of this ticket; if you do,
please merge.

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

Now says
===SORRY!===
Cannot declare placeholder parameter $^a in the mainline at

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

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

@p6rt p6rt closed this as completed Oct 1, 2011
@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

Now says
===SORRY!===
Cannot declare placeholder parameter $^a in the mainline at

@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