From: matz@... (Yukihiro Matsumoto) Date: 2002-09-13T12:20:40+09:00 Subject: Re: private variables Hi, In message "Re: private variables" on 02/09/12, Christian Szegedy writes: |> 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. |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. Yes. Hence it should not be exported as an attribute method, which can be seen from everywhere. Am I missing something? matz.