From: MikkelFJ Date: 2001-08-11T22:43:34+09:00 Subject: [ruby-talk:19526] Re: the way class variables work wrote in message news:m266bulq1f.fsf@skaro.access.one.net... > >>>>> "David" == David Alan Black writes: > Class variable mimic "static" variables in Java or C++. Class > instance variables are instance variables in the class object. I was thinking about the C++ analogy as well. But it doesn't hold. If you derive a class in C++ , any static members would have to be re-implemented in the derived class. The derived class will not share the static member. In templates you don't have to explicitly declare the instance member implementation, but it still creates a new instance. This is an important aspect of buffer-management in container classes - although it might actually have been better to share the buffer impl. between family members. Mikkel