# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #83902] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=83902 >
<masak> rakudo: class A { method foo { my $a = 42; method bar { say $a } } }; given A.new { .foo; .bar } <p6eval> rakudo 86bf4c: OUTPUT«42» <masak> rakudo: class A { method foo { my $a = 42; method bar { say $a } } }; A.new.bar <p6eval> rakudo 86bf4c: OUTPUT«Null PMC access in type() in 'A::bar' [...] * masak submits rakudobug <masak> I suspected that might happen :P <masak> at the point .bar is called, if .foo hasn't been called, $a contains a Null PMC. <masak> because the lexpad in .foo has never been visited, and thus is not active. <masak> this'll all be fixed when we have static lexpads.