[Uml-devel] [Bug 83446] Can't have two classes in different packages named the same

Oliver Kellogg okellogg at users.sourceforge.net
Fri Jun 18 12:52:00 UTC 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From okellogg users sourceforge net  2004-06-18 21:51 -------
> It shouldn't matter what the package path is however.
> I should be able to create a class in any package that
> doesn't already have a class of that name.

In principle I agree, but we have to be careful here:

> Foo::bar is not the same as ::bar or Foo::Foo2::bar 

However, Foo::Foo2::bar has visibility of Foo::bar which
in turn has visibility of (i.e. re-declares) ::bar.
Now, it might be that a given programming language has
a rule that says that inner declarations hide same-named
outer declarations, but that behaviour is still programming
language dependent.

More information about the umbrello-devel mailing list