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 has a strange error message when running '1.++()' #1534

Closed
p6rt opened this issue Feb 27, 2010 · 6 comments
Closed

Rakudo has a strange error message when running '1.++()' #1534

p6rt opened this issue Feb 27, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Feb 27, 2010

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

Searchable as RT73156$

@p6rt
Copy link
Author

p6rt commented Feb 27, 2010

From @masak

<masak> rakudo​: say 1.++()
<p6eval> rakudo c83cf2​: OUTPUT«Could not find non-existent sub
&postfix​:<.> [...]
<masak> std​: say 1.++()
<p6eval> std 29872​: OUTPUT«ok 00​:01 107m␤»
<jnthn> wtf
<masak> it parses, but as what?
<jnthn> I hate to imagine.
<masak> the error message should be some kind of tip-off. I just don't
know what kind.
<jnthn> It's a "lol you're failing at parsing postfixes" tip-off.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM​: still broken

bbkr​:nom bbkr$ ./perl6 -e '1.++()'
Could not find sub &postfix​:<.>

@p6rt
Copy link
Author

p6rt commented Sep 1, 2013

From @Mouq

Correct error is now thrown on nom​:
11​:38 < Mouq> r​: 1.++()
11​:38 <+camelia> rakudo e3b73d​: OUTPUT«Cannot modify an immutable value␤
in sub␤ postfix​:<++> at src/gen/CORE.setting​:4000␤ in sub
postfix​:<++> at␤ src/gen/CORE.setting​:2216␤ in block at
/tmp/Ipput8Jp1R​:1␤␤»

@p6rt
Copy link
Author

p6rt commented Apr 14, 2014

From @Mouq

On Sun Sep 01 08​:40​:40 2013, Mouq wrote​:

Correct error is now thrown on nom​:
11​:38 < Mouq> r​: 1.++()
11​:38 <+camelia> rakudo e3b73d​: OUTPUT«Cannot modify an immutable value␤
in sub␤ postfix​:<++> at src/gen/CORE.setting​:4000␤ in sub
postfix​:<++> at␤ src/gen/CORE.setting​:2216␤ in block at
/tmp/Ipput8Jp1R​:1␤␤»

Since this had to do with dotty postfixes in general not working, and since dotty postfixes are tested in S02-lexical-conventions/unspace.t, I'm marking this as resolved

@p6rt
Copy link
Author

p6rt commented Apr 14, 2014

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