il Fri, 22 Aug 2003 13:09:21 +0900, Patrick Bennett
<patrick.bennett / inin.com> ha scritto::

>Ryan Pavlik wrote:
>
>>Basically, in Ruby, you _do_ have what C++/Java would call a "static
>>class member", and you also have something else---@@class variables.
>>It's mostly the term here that's confusing, I think.
>>
>No, @variables are like normal instance variables in C++.  They 
>*definitely* aren't like C++ 'static's. 


yet another point of misunderstood, I suppose :)

the thing he's talking about is 'instance variables of Class objects',
they are impossible in java cause Class is not an object, but you can
ue them in ruby.

the way to use them has been showed a couple of time by now:

>> class My
>> class <<self
>> attr_accessor :my_var
>> end
>> end
=> nil
>> My.my_var
=> nil
>> My.my_var=10
=> 10
>> My.my_var
=> 10