From: William Djaja Tjokroaminata Date: 2002-09-14T06:22:55+09:00 Subject: Re: private variables Wait, wait, wait... I think someone should really have defined what private variables in Ruby really are. Using C++ terminology, I think the private variables in Ruby are really like C++ "private" variables. In the current Ruby, instance variables are always "protected", and they can only be made "public" by the accessor functions. Regards, Bill ============================================================================ Kent Dahl wrote: > Tom Sawyer wrote: >> so were talking about instance variables being private? ugh, i'm >> confused (sorry i didn't catch the whole of this thread) arn't instance >> variable always private? you can only access them through accessor >> methods. i'm missing somthing here. > They are object private, but not class private. (Puritans and C++ > programmers would say they are "protected", since the subclass can reach > them.)