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

'@_.=[3]' causes a strange error in Rakudo #1603

Closed
p6rt opened this issue Mar 10, 2010 · 6 comments
Closed

'@_.=[3]' causes a strange error in Rakudo #1603

p6rt opened this issue Mar 10, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Mar 10, 2010

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

Searchable as RT73502$

@p6rt
Copy link
Author

p6rt commented Mar 10, 2010

From @masak

<masak> rakudo​: @​_.=[3]
<p6eval> rakudo 0a0469​: OUTPUT«Method '!postcircumfix​:<[ ]>' not found
for invocant of class 'ResizablePMCArray' [...]
<masak> was that one submitted?
<masak> it's a diakopterbug.
<jnthn> Not sure on submitted, but it looks familiar.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Mar 25, 2010

From @moritz

On Wed Mar 10 15​:37​:13 2010, masak wrote​:

<masak> rakudo​: @​_.=[3]
<p6eval> rakudo 0a0469​: OUTPUT«Method '!postcircumfix​:<[ ]>' not found
for invocant of class 'ResizablePMCArray' [...]
<masak> was that one submitted?
<masak> it's a diakopterbug.
<jnthn> Not sure on submitted, but it looks familiar.
* masak submits rakudobug

This now gives a much friendlier error message​:

10​:39 <@​moritz_> rakudo​: @​_.=[3]
10​:39 <+p6eval> rakudo db0f85​: OUTPUT«Can not use .= on a non-identifier
method
  call at line 11, near ""␤current instr.​:
  'perl6;HLL;Grammar;panic' pc 500
  (ext/nqp-rx/src/stage0/HLL-s0.pir​:328)␤»

I'm not sure this should be disallowed, so I leave this ticket open.

@p6rt
Copy link
Author

p6rt commented Mar 25, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

From @coke

On Thu Mar 25 02​:44​:12 2010, moritz wrote​:

On Wed Mar 10 15​:37​:13 2010, masak wrote​:

<masak> rakudo​: @​_.=[3]
<p6eval> rakudo 0a0469​: OUTPUT«Method '!postcircumfix​:<[ ]>' not found
for invocant of class 'ResizablePMCArray' [...]
<masak> was that one submitted?
<masak> it's a diakopterbug.
<jnthn> Not sure on submitted, but it looks familiar.
* masak submits rakudobug

This now gives a much friendlier error message​:

10​:39 <@​moritz_> rakudo​: @​_.=[3]
10​:39 <+p6eval> rakudo db0f85​: OUTPUT«Can not use .= on a non-identifier
method
call at line 11, near ""␤current instr.​:
'perl6;HLL;Grammar;panic' pc 500
(ext/nqp-rx/src/stage0/HLL-s0.pir​:328)␤»

I'm not sure this should be disallowed, so I leave this ticket open.

It's changed again​:

20​:38 < [Coke]> rakudo​: @​_.=[3]
20​:38 <+p6eval> rakudo 545638​: OUTPUT«===SORRY!===␤Cannot declare placeholder
  parameter @​^_ in the mainline at line 1, near ".=[3]"␤»

Given moritz's question, reassigning this as a [spec] ticket.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 3, 2012

From @moritz

Now conveniently tested in S32-exceptions/misc.t.

@p6rt
Copy link
Author

p6rt commented Feb 3, 2012

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