From: Kent Dahl Date: 2003-11-30T18:17:08+09:00 Subject: Re: anything disappearing from Ruby for 2.0? Florian Gross wrote: > What about @@variables? As I see it they're confusing a large amount of > new Ruby users and I don't see how they shouldn't be replaced with > simpler attr_accessors in classes instead. (e.g. @@foo would be > self.class.foo) Class instance variables aren't inherited and the attr_accessors would have to be pretty niftily implemented to serve the same purpose as @@vars do now. I've seen lots of threads on how to do it with attr, and maybe I've misunderstood something but I can't help but think that: a) they don't cover all the uses of @@vars b) those rather mindbending implementations that did come close, reeked of overhead and really just makes a slower, syntactic sugar version of @@vars. IMHO. -- (\[ Kent Dahl ]/)_ _~_ _____[ http://www.pvv.org/~kentda/ ]_____/~ ))\_student_/(( \__d L b__/ Master of Science in Technology ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)