Squeak and Namespaces

Klaus D. Witzel klaus.witzel at cobss.com
Thu Nov 30 15:49:37 UTC 2006


Hi Lex,

on Thu, 30 Nov 2006 13:06:54 +0100, you wrote:
...
> Practically, a Java-like solution seems pretty good.  There is room
> for incremental improvement in that area, though.  The generalized
> imports of Scala seem helpful, IMHO.  As two examples of this (and
> attempting a Smalltalky syntax):
>
>    import Core.Date -> CDate  "import Core.Date, and"
>                               "rename it to CDate in"
>                               "this scope"
>
>
>    import Deeply.Nested.[Package -> Pack]
>                               "make Pack be a shortened"
>                               "version of Deeply.Nested.Package"

Interesting. Then, when you ask for all references to Package and later to  
Pack, what are the respective results?

Is this under the assumption that atoms in name space are unassignable  
objects (like: classes); what happens when Pack := nil ?

/Klaus

>
> These are small improvements over Java, but I use them all the time.
>
> -Lex
>
>
>
>





More information about the Squeak-dev mailing list