Skip Menu |
Report information
Id: 70888
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: 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 assigning the result of a for loop to an array and doing .WHAT on its first element in Rakudo
Date: Fri, 27 Nov 2009 22:20:39 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 166b
<masak> rakudo: my @a = 1, 2, 3; my @b = (@a.shift for ^3); @b[0].WHAT <p6eval> rakudo 7347ec: Null PMC access in find_method('WHAT') [...] * masak submits rakudobug
Subject: [BUG] Null PMC access when doing .WHAT on a for loop
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 407b
On Fri Nov 27 13:21:03 2009, masak wrote: Show quoted text
> <masak> rakudo: my @a = 1, 2, 3; my @b = (@a.shift for ^3);
@b[0].WHAT Show quoted text
> <p6eval> rakudo 7347ec: Null PMC access in find_method('WHAT')
[...] Show quoted text
> * masak submits rakudobug
Also, like this: $ perl6 -e 'sub foo { for 1,2,3 {} }; say foo.WHAT' Null PMC access in find_method('WHAT') [...] $ perl6 -e '(for 1 {}).WHAT' Null PMC access in find_method('WHAT') [...]
Subject: [BUG] Null PMC access when doing .WHAT on a for loop
Download (untitled) / with headers
text/plain 114b
On Moscow build it's now perl6 -e '(for 1 {}).WHAT' Method 'WHAT' not found for invocant of class 'ArrayIterator'
Subject: [BUG] Null PMC access when doing .WHAT on a for loop
On Kiev build: $ perl6 -e '(for 1 {}).WHAT.say' ParrotIter()
Download (untitled) / with headers
text/plain 255b
No longer a Null PMC access in newer Rakudos. Resolving ticket. <masak> rakudo: say (for 1 {}).WHAT <p6eval> rakudo 2f4733: OUTPUT«ParrotIter()␤» <masak> rakudo: sub foo { for 1,2,3 {} }; say foo.WHAT <p6eval> rakudo 2f4733: OUTPUT«ParrotIter()␤»


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