[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Class-level readers and writers

Christoph R.

12/2/2003 5:04:00 AM

David A. Black wrote:
...
> > ...
> > > > In the original discussion what we call "class local" instance
> > > > variables
> > >
> > > OK... but then they're "class local variables", right, not "class
> > > local instance variables"? (since they're visible inside method
> > > definitions).
> >
> > Yes, I just wanted to be "über" correct and added the collectively
> > swallowed "instance" part - since they are "kind_of" an instance
> > variable.
>
> Although... I think that if a variable's scope is a superset

Nope it's a subset of today's instance variables ...

> of instance scope (which would include class local variables
> and global variables), then it really isn't an instance
> variable (although it may well serve to do the same things as
> one in many situations).
>
> Not to quibble -- just reasoning it out in anticipation of change :-)

/Christoph