# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #75700]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75700 >


<masak> anyone else get this? I'm just loading a class through a
module, calling a method on it. Null PMC access.
http://gist.github.com/436120

$ cat A.pm
use v6;

class A {
    method x {
    }
}

$ perl6 -e 'use A; say A.new.x'
Null PMC access in type()
  in main program body at line 1

<masak> it feels strange that something like this would go unnoticed
for very long. maybe my local build is corrupted somehow.
* moritz_ gets the same
* masak submits rakudobug
<PerlJam> rakudo: class A { method x {} }; say A.new.x
<p6eval> rakudo ae1300: OUTPUT«Null PMC access in type() [...]
<PerlJam> rakudo: class A { method x {return} }; say A.new.x
<p6eval> rakudo ae1300: OUTPUT«␤»
<masak> those two are distinct.
<masak> oh wait. no.
<masak> PerlJam++'s is an easier case of mine.
<jnthn> It's probably the same old "null return" thing.
<colomon> rakudo: class A { method x { 1; } }; say A.new.x
<PerlJam> seems so.
<p6eval> rakudo ae1300: OUTPUT«1␤»
<PerlJam> rakudo: class A { method x { ; } }; say A.new.x
<p6eval> rakudo ae1300: OUTPUT«Null PMC access in type() [...]
<masak> rakudo: sub x {}; say x
<p6eval> rakudo ae1300: OUTPUT«Null PMC access in type() [...]
<masak> rakudo: say {;}()
<p6eval> rakudo ae1300: OUTPUT«Null PMC access in type() [...]
<masak> golf :)

Reply via email to