From: dblack@... Date: 2003-10-03T01:19:51+09:00 Subject: Re: Instance- and class-variables (was Re: mixing in class methods) Hi -- On Fri, 3 Oct 2003 dblack@superlink.net wrote: > Another way to look at it is that Matz clearly wants these two very > different things to exist, so if @@var were an alias for class << > self; @var; end, there would presumably be something else ($$var or > ^^var or whatever) to represent class variables. So then the question > would arise again: should ^^var be equivalent to class << self; @var; > end, and so on infinitely. I guess the @-similarity leads more quickly > to this kind of question than might be the case otherwise, but it's > really just a cosmetic detail. And of course the fact that it might actually be self.class.class_eval { @var } also reminds us that there's no natural mapping between these things :-) David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav