From: Robert Feldt Date: 2003-08-22T14:03:38+09:00 Subject: Re: Class variables - a surprising result Patrick Bennett skrev den Fri, 22 Aug 2003 13:59:54 +0900: > Geesh - sneaky stuff.. This kind of thing *definitely* violates the > P.O.L.S. imo. For one, having the 'same' variable actually be two > different 'instances' (one, a class variable effectively, > and another, an instance variable) is very confusing. I understand it > now (although I have to think about it for a sec, and personally, I think > that's a bad sign). > I think the above @var=6 assignment outside of a method decl should be > illegal. It should have to be a @@ reference. > I disagree. The class is an *instance* of the class Class and thus should be allowed to have instance variables. /Robert