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

LTA error message when doing 'for my $/ ();' in Rakudo #2774

Closed
p6rt opened this issue May 22, 2012 · 7 comments
Closed

LTA error message when doing 'for my $/ ();' in Rakudo #2774

p6rt opened this issue May 22, 2012 · 7 comments

Comments

@p6rt
Copy link

p6rt commented May 22, 2012

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

Searchable as RT113040$

@p6rt
Copy link
Author

p6rt commented May 22, 2012

From @masak

<masak> r​: for my $/ ();
<p6eval> rakudo dca0fa​: OUTPUT«===SORRY!===␤Contextual %*PARAM_INFO not found␤»
* masak submits LTA error diakopter++ rakudobug

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

From @coke

On Tue May 22 13​:17​:31 2012, masak wrote​:

<masak> r​: for my $/ ();
<p6eval> rakudo dca0fa​: OUTPUT«===SORRY!===␤Contextual %*PARAM_INFO
not found␤»
* masak submits LTA error diakopter++ rakudobug

22​:04 < [Coke]> r​: for my $/ ();
22​:04 <+p6eval> rakudo bf472b​: OUTPUT«===SORRY!===␤Redeclaration of symbol
  $/␤at /tmp/xEoQYkfkHM​:1␤»

Closable with tests?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

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

@p6rt
Copy link
Author

p6rt commented Oct 4, 2014

From @usev6

This fails now with X​::AdHoc​:

for my $/ ();
===SORRY!===
Missing block
at <unknown file>​:1
------> for my $/ ()⏏;
  expecting any of​:
  scoped declarator
  constraint
  postfix
  parameterized block
Other potential difficulties​:
  Redeclaration of symbol $/
  at <unknown file>​:1
  ------> for my $/ ()⏏;

If I add an empty block it doesn't die (but warns for the Redeclaration of symbol $/).

Since there is a NYI spec change in S05 ("In order to detect accidental use of Perl 5's unrelated $/ variable, Perl 6's $/ variable may not be assigned to directly.") the current behaviour will probably change.

@p6rt
Copy link
Author

p6rt commented May 14, 2015

From @jdv

The output has changed​:

22​:59 <jdv79> m​: for my $/ ();
22​:59 <camelia> rakudo-moar 8e8936​: OUTPUT«===SORRY!=== Error while compiling /tmp/kebuZ3fC7m␤Signatures as constraints on variables not yet implemented. Sorry. ␤at
  /tmp/kebuZ3fC7m​:1␤------> for my $/ ()⏏;␤»

@p6rt
Copy link
Author

p6rt commented Jun 14, 2015

From @jdv

No tests needed here as the issue is resolved and the new
error message is linked to "post constraints" which I'm
guessing is what is being conjectured about here​:
http://design.perl6.org/S12.html#Multiple_constraints.

@p6rt
Copy link
Author

p6rt commented Jun 14, 2015

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