A little namespace "proposal"

David P Harris dpharris at telus.net
Tue Apr 6 16:16:28 UTC 2004


goran.krampe at bluefish.se wrote:

>Hi all!
>
>Rereading what Roel said I realized that I must have missed a whole
>crucial piece of the puzzle in my presentation. I think.
>
Well, whether you missed it or not, I understood :-)

>...I also noted that this is wrong, I wrote:
>
>"Note also how this eliminates the needs for imports, the short form is
>usable in two scenarios:
>	1. The name referenced is in the local namespace.
>	2. There is only one such name in all the other Namespaces."
>
>No, the short form should only be usable when there in fact is only ONE
>name in the image like that. This means you can only write "Delay" if
>there is only one class called "Delay" in ALL the namespaces.
>  
>
Maybe there good be an arternate short form for local references, so the 
source code does not so cluttered?  For example, ::Delay.  This would 
indicate there are other Delay objects in the system, but we are 
referring to the local version. 
David





More information about the Squeak-dev mailing list