Skip Menu |
Report information
Id: 66552
Status: resolved
Priority: 5/
Queue: perl6

Owner: Nobody
Requestors: amoc <amoc.yn [at] gmail.com>
masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Null PMC access when using ordinary infix:<==> after defining custom multi variant in Rakudo
Date: Fri, 12 Jun 2009 14:48:44 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 170b
<masak> rakudo: role A {}; multi sub infix:<==>(A $a, A $b) {}; 42 == 42 <p6eval> rakudo e61569: OUTPUT«Null PMC access in find_method() [...] * masak submits rakudobug
Download (untitled) / with headers
text/plain 287b
On Fri Jun 12 05:49:17 2009, masak wrote: Show quoted text
> <masak> rakudo: role A {}; multi sub infix:<==>(A $a, A $b) {}; 42 == 42 > <p6eval> rakudo e61569: OUTPUT«Null PMC access in find_method() [...] > * masak submits rakudobug
Now tested in t/spec/S06-operator-overloading/sub.t. Cheers, Moritz
Subject: [BUG] Null PMC access when define multi sub with builtin operator
Date: Tue, 23 Jun 2009 11:38:28 +0900
To: rakudobug [...] perl.org
From: hojung yoon <amoc.yn [...] gmail.com>
Download (untitled) / with headers
text/plain 505b
at rev: 10f2235028194deddf3db350b5a4a5208484ac09
relative ticket: [perl #65638]
it's url: http://rt.perl.org/rt3/Public/Bug/Display.html?id=65638

Show quoted text
## "multi sub" works
Show quoted text
> multi sub infix:<op> ($l,$r) { $l ~ $r }; say( 1 op 2 )
12

Show quoted text
## overiding works (but doesn't warn that it is overiding builtin op)
Show quoted text
> sub infix:<+> ($l,$r) { $l ~ $r }; say( 1 + 2 )
12

Show quoted text
## meanwhile, it occurs Null PMC access
Show quoted text
> multi sub infix:<+> ($l,$r) { $l ~ $r }; say( 1 + 2 )
Null PMC access in find_method()
in Main (<unknown>:1)

Download (untitled) / with headers
text/plain 145b
The posted test (the bug-related additions to it) passes, and the posted problems do not return a Null PMC access. Bug resolved. -- Don't Panic!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org