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

We thought Rakudo would recongnize this custom op, but it doesn't #2656

Closed
p6rt opened this issue Feb 28, 2012 · 5 comments
Closed

We thought Rakudo would recongnize this custom op, but it doesn't #2656

p6rt opened this issue Feb 28, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 28, 2012

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

Searchable as RT111418$

@p6rt
Copy link
Author

p6rt commented Feb 28, 2012

From @masak

<masak> nom​: sub infix​:<*+> ($a,$b) { $a * $b + $b }; say 2 *+ 5
<p6eval> nom e95935​: OUTPUT«10␤»
* masak submits rakudobug
<jnthn> wtf
<moritz> nom​: sub infix​:<*+> ($a,$b) { $a * $b + $b }; say infix​:<*+>(2, 5)
<p6eval> nom e95935​: OUTPUT«15␤»
<felher> hm. Does nom think its 2 *(+5)?
<jnthn> yeah but...even the cheating LTM that Rakudo's parser depends
on is meant to get *that* case right.
<masak> that's why I'm submitting it as a bug :)
<jnthn> Well, I dobut I'm gonna hunt down a bug in a load of code I
plan to eliminate as soon as I get the tuits. :)
<jnthn> Hopefully the new LTM engine gets it righter.

@p6rt
Copy link
Author

p6rt commented Jun 11, 2012

From @jnthn

On Tue Feb 28 13​:27​:21 2012, masak wrote​:

<masak> nom​: sub infix​:<*+> ($a,$b) { $a * $b + $b }; say 2 *+ 5
<p6eval> nom e95935​: OUTPUT«10␤»
* masak submits rakudobug
<jnthn> wtf
<moritz> nom​: sub infix​:<*+> ($a,$b) { $a * $b + $b }; say
infix​:<*+>(2, 5)
<p6eval> nom e95935​: OUTPUT«15␤»
<felher> hm. Does nom think its 2 *(+5)?
<jnthn> yeah but...even the cheating LTM that Rakudo's parser depends
on is meant to get *that* case right.
<masak> that's why I'm submitting it as a bug :)
<jnthn> Well, I dobut I'm gonna hunt down a bug in a load of code I
plan to eliminate as soon as I get the tuits. :)
<jnthn> Hopefully the new LTM engine gets it righter.

It does​:

sub infix​:<*+> ($a,$b) { $a * $b + $b }; say 2 *+ 5
15

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jun 11, 2012

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

@p6rt
Copy link
Author

p6rt commented Jun 28, 2012

From @moritz

Now tested in S06-operator-overloading/sub.t

@p6rt
Copy link
Author

p6rt commented Jun 28, 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