Re: Read access to class-scope variables from the class scope

2009-01-14 Thread Larry Wall
On Mon, Jan 12, 2009 at 12:33:31PM +0100, Carl Mäsak wrote: : Writing something like this in Rakudo yesterday, I was slightly : surprised to find it not working: : : class SomeClass { : my $.warn_limit = 1000; : my $.stern_warn_limit = $.warn_limit * 1.05; : my $.expel_limit = $.war

Read access to class-scope variables from the class scope

2009-01-12 Thread Carl Mäsak
Writing something like this in Rakudo yesterday, I was slightly surprised to find it not working: class SomeClass { my $.warn_limit = 1000; my $.stern_warn_limit = $.warn_limit * 1.05; my $.expel_limit = $.warn_limit * 1.10; # ... } The specific error from Rakudo is "Lexical '