A little namespace "proposal"

Alexandre Bergel bergel at iam.unibe.ch
Thu Apr 15 14:40:18 UTC 2004


Hi!

> I also think that modifications made to an external Namespace from a 
> "current" Namespace (e.g. adding yet another obscure method to String 
> that's only used by you) should be visible only from the Namespace from 
> which it was made. I.e. the "MikesStuff" namespace might add a 
> "asChewingGum" method on String, but it can only be seen and used from 
> the "MikesStuff" Namespace and no other. Don't ask me how though... 
> perhaps ClassBoxes do this?

Yes, it does.
Assuming the following: 
 - in your MikesStuff add asChewingGum on String, and 
 - I want to use also "MalabarStuff" that add the same method on String

You might want to have:
  - asChewingGum provided by MikesStuff when this method is call within MikesStuff, and
  - Malabar version when this method is called within MalabarStuff

Here is a couple of retranscripted test related to this classbox feature:
http://kilana.unibe.ch:9090/classboxes/tests/

Cheers,
Alexandre

> 
> Mikevdg.
> 

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



More information about the Squeak-dev mailing list