R
rtilley
Is it correct to say that class variables '@@' are similar to globals in
that they are global to their class?
that they are global to their class?
Is it correct to say that class variables '@@' are similar to globals in that
they are global to their class?
Their class, and subclasses of their class. They're pretty
global-ish. That's scheduled to be fixed^H^H^H^H^H^H^Hchange in Ruby
2.0, when they'll be visible only to their class/module and the
instance methods inside it (as I understand Matz's description).
unknown said:Hi --
global-ish. That's scheduled to be fixed^H^H^H^H^H^H^Hchange in Ruby
2.0, when they'll be visible only to their class/module and the
instance methods inside it (as I understand Matz's description).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.