From: "Bennett, Patrick" Date: 2003-08-22T03:56:15+09:00 Subject: Re: Class variables - a surprising result My point was that many programmar's mistake Ruby's 'class' variables as equivalent to static variables (I did). Obviously they're not, but I thought it was worth pointing out that it's a source of confusion for some [like myself] (until they learn or are told otherwise). The fact that there were several messages about it (and several mentioning they didn't know it worked that way [I didn't for one]) I think it says something about its confusing (or perhaps under-documented) nature. Since you designed the langusge, I'm sure you're not the slightest bit confused by it. So, I think you can be discounted when it comes to tallying the votes on Ruby confusion. ;) Cheers... -----Original Message----- From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] Sent: Thursday, August 21, 2003 1:48 PM To: ruby-talk ML Subject: Re: Class variables - a surprising result Hi, In message "Re: Class variables - a surprising result" on 03/08/22, "Bennett, Patrick" writes: |In most languages (C++, Java, Delphi, etc.), class variables (static's) |are scoped by the *class*, not the entire inheritance chain. As far as I know, C++ and Java do not have class variables. They have static member variables, which can be either private, protected, or public. I know nothing about Delphi. matz.