logo       

Re: class name scoping: msg#00098

lang.smalltalk.squeak.beginners

Subject: Re: class name scoping

On Aug 13, 2007, at 8:24 AM, goran@xxxxxxxxx wrote:

Hi!

Mark Volkmann <mark@xxxxxxxxxx> 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


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise