S
StephenSykes
I know the rules for class variables have changed in 1.9, but I am not
understanding this behaviour (this works ok in 1.8.x):
?> B.new.show
22
NameError: uninitialized class variable @@x in B
from (irb):14:in `show'
from (irb):18
from :0
$ ruby -v
ruby 1.9.0 (2004-07-29) [i686-linux]
Stephen
understanding this behaviour (this works ok in 1.8.x):
?> B.new.show
22
NameError: uninitialized class variable @@x in B
from (irb):14:in `show'
from (irb):18
from :0
$ ruby -v
ruby 1.9.0 (2004-07-29) [i686-linux]
Stephen