[Newbies] class name scoping

Mark Volkmann mark at ociweb.com
Mon Aug 13 13:32:04 UTC 2007


On Aug 13, 2007, at 8:24 AM, goran at krampe.se wrote:

> Hi!
>
> Mark Volkmann <mark at ociweb.com> wrote:
>> What happens in Smalltalk if multiple categories contain a class with
>> the same name? Is that allowed? If so, how do you specify which one
>> you want?
>
> Not allowed. Squeak has no namespaces. Categories have no "semantic"
> meaning, it is only for organisation.

Interesting. So if I develop a Smalltalk library and you develop one  
and then someone decides to use both our libraries in their project  
then they have a problem if you and I chose the same name for one of  
our classes?

---
Mark Volkmann


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070813/af817f8a/attachment.htm


More information about the Beginners mailing list