Squeak and Namespaces

J J azreal1977 at hotmail.com
Thu Nov 30 05:45:25 UTC 2006


>From: "Michael van der Gulik" <mikevdg at gmail.com>
>Reply-To: The general-purpose Squeak developers 
>list<squeak-dev at lists.squeakfoundation.org>
>To: "The general-purpose Squeak developers 
>list"<squeak-dev at lists.squeakfoundation.org>
>Subject: Re: Squeak and Namespaces
>Date: Thu, 30 Nov 2006 12:07:24 +1300
>
>On 11/29/06, Klaus D. Witzel <klaus.witzel at cobss.com> wrote:
>>
>>   Morphic >~ View
>>   Tweak >~ View
>>   System >~ Default >~ Compiler
>>   My >~ Terrific >~ Compiler
>>
>
>Implementing Namespaces like this would mean that your code runs slower. In
>order to refer to a class, you'll need to send a message to a Namespace
>every time you refer to it, rather than just refer to the class directly.
>

It wouldn't have to.  No matter how the mechanism works, it can be resolved 
at compile time to point to the actual location of the class, so slightly 
slower compile but that's it.  I can't think of any reason to do such 
lookups dynamically.

>Also, your message names are capitalised, which will have a negative affect
>on your karma.
>
>Michael.

Well if you see them as Name or Class spaces then I think convention would 
indicate they should be upper case.

_________________________________________________________________
Get free, personalized commercial-free online radio with MSN Radio powered 
by Pandora http://radio.msn.com/?icid=T002MSN03A07001




More information about the Squeak-dev mailing list