Re: [perl #62334] problem accessing outside variables from a class definition in Rakudo

2009-01-16 Thread Patrick R. Michaud
On Wed, Jan 14, 2009 at 01:28:10AM -0800, Carl Mäsak wrote: > rakudo: my $x = "foo"; class A { my $.y = $x } # bug? > rakudo 35518: OUTPUT«Lexical '$x' not found␤ [...] There's a known problem that we can't yet do outer lexicals from things that look like BEGIN blocks (in Parrot terms -- things

[perl #62334] problem accessing outside variables from a class definition in Rakudo

2009-01-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62334] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62334 > rakudo: my $x = "foo"; class A { my $.y = $x } # bug? rakudo 35518: OUTPUT«Lexical '$x