[perl #69967] [BUG] Cannot refer to a constant declared in a class in Rakudo

2009-10-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #69967] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=69967 > In Rakudo 4c248e5c, constants can no longer be used inside of classes. $ perl6 -e'class

[perl #69967] [BUG] Cannot refer to a constant declared in a class in Rakudo

2009-10-23 Thread Carl Mäsak via RT
On Thu Oct 22 04:05:08 2009, masak wrote: > In Rakudo 4c248e5c, constants can no longer be used inside of classes. > > $ perl6 -e'class A { constant B = 5; has $!x = B }; A.new' > Null PMC access in isa() > [...] > $ perl6 -e'class A { constant B = 5; has $!x = A::B }; A.new' > Null PMC access in