From: "T. Onoma" Date: 2003-11-30T12:07:29+09:00 Subject: Re: Class-level readers and writers On Saturday 29 November 2003 10:59 pm, Christoph wrote: > David A. Black wrote: > ... > > > So that's probably not a great idea in most cases. Class > > variables have their own quirks, though they're scheduled to > > be a bit de-quirked in 2.0. > > My understanding (not that my record in reading Matz 2.0 > intention is anything I should be bragging about - not that > I mind, since I am feeling like a kid in a candy store:-) > was that Rite's class variables will behave like today's class > instance variables without the need of ``class attribute > accessors''. I'm not sure if I'm understanding this correctly. Is the following in any way related: ruby-core:01787 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/1787 The short of it: class X a = 1 def a @a # => 1 end end Or is that class local variable? Cause I'm not understand how @@a "will behave like today's class instance variables without the need of ``class attribute accessors''." Can you elaborate more? -t0