Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #70596] [BUG] abs(412).WHAT is parsed the wrong way in Rakudo

0 views
Skip to first unread message

Carl Mäsak

unread,
Nov 17, 2009, 10:59:25 AM11/17/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #70596]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70596 >


<diakopter> rakudo: say (abs(412).WHAT) # here's one for you, masak
<p6eval> rakudo 7347ec: Use of type object as value␤0␤
<masak> diakopter: nice catch!
* masak submits rakudobug
<diakopter> rakudo: say (abs (412).WHAT) # this is what it's parsing as
<p6eval> rakudo 7347ec: Use of type object as value␤0␤
<jnthn> youch
<moritz_> that's because it parses as a prefix, not sub call
<masak> o.O
<diakopter> rakudo: say (abs((412).WHAT))
<p6eval> rakudo 7347ec: Use of type object as value␤0␤
<jnthn> ng: say (abs((412).WHAT))
<p6eval> ng 1b20b6: 0␤
<jnthn> heh
<diakopter> well, that's right

jnthn@jnthn.net via RT

unread,
Apr 19, 2010, 7:41:27 PM4/19/10
to perl6-c...@perl.org
On Tue Nov 17 07:59:25 2009, masak wrote:
> <diakopter> rakudo: say (abs(412).WHAT) # here's one for you, masak
> <p6eval> rakudo 7347ec: Use of type object as value␤0␤
> <masak> diakopter: nice catch!
> * masak submits rakudobug

Works in latest Rakudo and the test passes and is run...

ok 50 - abs(x).WHAT parses as x.abs.WHAT

So resolving.

Thanks,

Jonathan

0 new messages