From: Roger Pack Date: 2009-12-20T12:09:32+09:00 Subject: Re: special cased? > Class variables are a very strange beast with bizarre semantics. I would > avoid them if I were you. Yeah they must be special cased so that beginning users can use them with abandon and it will "just work." Interesting. in class A @@a = 3 end class B < A def go @@a end end in B.new.go => 3...where is @@a stored?...it's not in B...it's not in A's nearest ancestor, which is "Object"...it's special cased somehow? Roughly paraphrasing a quote I heard once... "after using ruby for 5 years, it is still surprising to me" (no offence intended, of course :) Cheers. -r -- Posted via http://www.ruby-forum.com/.