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

What's clearly a postfix is called a prefix in an error message in Rakudo #2974

Open
p6rt opened this issue Dec 7, 2012 · 5 comments
Open
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 7, 2012

Migrated from rt.perl.org#116012 (status was 'open')

Searchable as RT116012$

@p6rt
Copy link
Author

p6rt commented Dec 7, 2012

From @masak

<diakopter> rn​: sub postfix​:<^^^>($a) is looser(&infix​:<+>) { $a; 77
}; say +6+ +8^^^
<p6eval> rakudo 53daef, niecza v24-5-g599cbcb​: OUTPUT«83␤»
<diakopter> rn​: sub postfix​:<^^^>($a) is looser(&infix​:<+>) { $a; 77
}; say +6^^^ +8^^^
<p6eval> rakudo 53daef​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Undefined
routine '&prefix​:<^^^>' called (line 1)␤»
<p6eval> ..niecza v24-5-g599cbcb​: OUTPUT«77␤»
<diakopter> erm
<jnthn> ...
<masak> o.O
* masak submits rakudobug
* jnthn wonders whose gonna fix these :P
* jnthn looks at Pm :D
<jnthn> EXPR is a scary place :)]

@p6rt
Copy link
Author

p6rt commented Nov 7, 2013

From @FROGGS

little bit simpler example​:

<FROGGS> p​: sub postfix​:<^^^>($a) is looser(&infix​:<+>) { $a; 77 }; say 6^^^ + 8
<camelia> rakudo-parrot d916db​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Undefined routine '&prefix​:<^^^>' called (lines 1, 1)␤»

@p6rt
Copy link
Author

p6rt commented Nov 7, 2013

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

@p6rt
Copy link
Author

p6rt commented Apr 17, 2015

From @FROGGS

This would disallow a too low precedence​:

https://gist.github.com/FROGGS/d1b09046bed6dd01ab56

I just don't know if this is the right fix for this issue or not.

@p6rt
Copy link
Author

p6rt commented Dec 1, 2017

From @AlexDaniel

Still reproducible (2017.11, HEAD(5929887))

The error message is a bit different​:

===SORRY!=== Error while compiling -e
Variable '&prefix​:<^^^>' is not declared
at -e​:1
------>  is looser(&infix​:<+>) { $a; 77 }; say 6⏏^^^ + 8

On 2015-04-17 03​:11​:45, FROGGS.de wrote​:

This would disallow a too low precedence​:

https://gist.github.com/FROGGS/d1b09046bed6dd01ab56

I just don't know if this is the right fix for this issue or not.

@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