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

[perl #66928] [BUG] Null PMC access when doing .WHAT on a built-in infix op in Rakudo

0 views
Skip to first unread message

Carl Mäsak

unread,
Jun 24, 2009, 3:06:33 PM6/24/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #66928]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66928 >


<moritz_> rakudo: say &infix:<+>.WHAT
<p6eval> rakudo 0e0671: OUTPUT«Null PMC access in find_method() [...]
<sbp> credit: Björn Höhrmann
* masak submits another rakudobug

Patrick R. Michaud via RT

unread,
Jun 30, 2009, 9:20:06 PM6/30/09
to perl6-c...@perl.org
Now fixed in ee1fd13:

$ ./perl6
> say &infix:<+>.WHAT
Multi()


Assigning to moritz++ for spectest coverage, if needed.

Pm

Kyle Hasselbacher

unread,
Jun 30, 2009, 9:47:33 PM6/30/09
to bugs-c...@netlabs.develooper.com, perl6-c...@perl.org
I've written a test for this in S12-methods/what.t in r27345.

# RT #66928
{
lives_ok { &infix:<+>.WHAT }, 'Can .WHAT built-in infix op';
isa_ok &infix:<+>.WHAT, Multi, '.WHAT of built-in infix op is Multi';
}

Kyle

Patrick R. Michaud via RT

unread,
Jun 30, 2009, 9:49:21 PM6/30/09
to perl6-c...@perl.org
On Tue Jun 30 18:47:59 2009, KyleHa wrote:
> I've written a test for this in S12-methods/what.t in r27345.

Thanks! Closing ticket!

Pm

Jonathan Worthington

unread,
Jul 1, 2009, 4:34:05 AM7/1/09
to Kyle Hasselbacher, bugs-c...@netlabs.develooper.com, perl6-c...@perl.org
Kyle Hasselbacher wrote:
> I've written a test for this in S12-methods/what.t in r27345.
>
> # RT #66928
> {
> lives_ok { &infix:<+>.WHAT }, 'Can .WHAT built-in infix op';
> isa_ok &infix:<+>.WHAT, Multi, '.WHAT of built-in infix op is Multi';
> }
>
>
Second one probably wants to be:

ok &infix:<+>.WHAT ~~ Multi, '.WHAT of built-in infix op is Multi';

As implementations are not obligated to have a Multi isa-type but may
have a Multi role mixed in or some such...

Jonathan

Kyle Hasselbacher

unread,
Jul 1, 2009, 7:04:23 AM7/1/09
to Jonathan Worthington, bugs-c...@netlabs.develooper.com, perl6-c...@perl.org
Fixed in r27349, thanks!

Kyle.

0 new messages