[Newbies] Private metods as my*?

Blake blake at kingdomrpg.com
Fri Mar 2 00:56:05 UTC 2007


On Tue, 27 Feb 2007 13:24:25 -0800, Bert Freudenberg  
<bert at freudenbergs.de> wrote:

> I've never seen a "fr" prefix, and seldomly a "my". To emphasize  
> privacy, "private" seems to be the most common prefix (just check a  
> regular image).
>
> There is also a private prefix that is even enforced by the compiler:  
> "pvt". It will only allow to send this to "self". This should only be  
> used in highly sensitive places, if at all.

Thanks, Bert.

So, that's a commonly held value in Smalltalk, i.e., privates should be  
severely limited if used at all? (I highly incline that way myself.)


More information about the Beginners mailing list