[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Class instance variables, class variables and constants

David Vallner

2/21/2006 2:39:00 AM

Dna Pondelok 20 Február 2006 15:22 Tony Mobily napísal:

> "I think Matz is planning to change class variables in 2.0 so that they
> are class/module scoped rather than hierarchy scoped."
>
> But wouldn't it make class variables (@@something) the same as class
> instance variables (@something)?
>

Nope. Class variables could still be "inherited", but they wouldn't clobber
stuff up the hierarchy if modified.

David Vallner