On 18.01.2009 14:07, Zhao Yi wrote: > David A. Black wrote: >> It's a class variable, which is actually a class-hierarchy variable >> (shared between a class and its descendants), and also visible to all >> the instances of all of those classes. >> >> In other words, it's a kind of class-hierarchy-scoped global. Think of >> it as $$name :-) > Ok thanks. That's why I always got error when access to this variable > outside of the class-hierarchy. Actually I would recommend against using this beast. There are some subtle issues with regard to definition order. Better use an instance variable of the class instance. Kind regards robert -- remember.guy do |as, often| as.you_can - without end