[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

var scope question

Brad Tilley

3/18/2006 4:45:00 PM

Is it correct to say that class variables '@@' are similar to globals in
that they are global to their class?
3 Answers

dblack

3/18/2006 5:07:00 PM

0

Brad Tilley

3/18/2006 5:28:00 PM

0

dblack@wobblini.net wrote:
> 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).

OK, thanks... about the time I fully understand it... things will
probably change :)

Jeff

3/19/2006 6:18:00 AM

0

unknown wrote:
> 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).

Any sense of when 2.0 might be released?

Jeff

--
Posted via http://www.ruby-....