[squeak-dev] #new

Randal L. Schwartz merlyn at stonehenge.com
Wed Mar 10 05:01:10 UTC 2010


>>>>> "keith" == keith  <keith_hodges at yahoo.co.uk> writes:

keith> Is new a reserved word?

keith> it doesn't appear to make a very good variable name (in cuis) , things  go out
keith> of scope, but I wondered why?

new as an instance var?  Or #new as an accessor to an instance var
named new?

There shouldn't be any problem at all with new as an instance var.
Just don't create the same-named accessors, because they have a *lot*
of meaning.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



More information about the Squeak-dev mailing list