From: Christian Szegedy Date: 2002-09-12T19:00:54+09:00 Subject: Re: private variables Yukihiro Matsumoto wrote: > Hi, > > In message "private variables" > on 02/09/11, ts writes: > > | Why I always write stupid things ? See the effect of attr_accessor with > | private variable > > Oh, I forget to mention that private instance variables should not be > exported by attr_accessor etc., because of the fact these variables > are private. Publicly exported private instance variable is > contradicting existence. > > matz. > I wonder why. Could you give some concrete reason for it? I thought, being private for a variable means that it can only be acessed by the methods of its class to avoid name collisions with instance variables in derived classes. Regards, Christian