From: Niklas Frykholm Date: 2001-08-12T16:34:31+09:00 Subject: [ruby-talk:19582] Re: Why not access control for instance and class variables? On Sun, Aug 12, 2001 at 03:00:27PM +0900, GOTO Kentaro wrote: > Recently, some possibilities were discussed at Japanese list. The > goal is to avoid unexpected name confliction. > > (0) All @variable should be private (my opinion, but this has been > rejected because of backward comptibility). > > (1) Gentlemen's agreement; a kind of special name should be given to > instance variables which is intended to be private. > > (2) Mangling feature something like Python's way may help the above. > In this case we would adopt new prefix, e.g., @_, for private. What about using Module#private to explicitly declare private variables. Since we already have @private it seems confusing to introduce a second mechanism to do something similar. // Niklas