digitalmars.D.learn - Module name clashes
- Mike Capp (12/13) Jul 24 2005 Given
- Mike Parker (2/26) Jul 25 2005 Are you using a module statement at the top of your module?
- Mike Capp (9/30) Aug 02 2005 No, I wasn't, and yes, the problem goes away if I add a module statement...
Given File math.d: File main.d:dmd main math{...}\src\phobos\std\math.d(12): module math is in multiple defined Is there a way to resolve this? If module names have to be globally unique within a program, what's the point of package qualifiers? cheers Mike
Jul 24 2005
Mike Capp wrote:Given File math.d: File main.d:Are you using a module statement at the top of your module?dmd main math{...}\src\phobos\std\math.d(12): module math is in multiple defined Is there a way to resolve this? If module names have to be globally unique within a program, what's the point of package qualifiers? cheers Mike
Jul 25 2005
In article <dc40mj$2nka$1 digitaldaemon.com>, Mike Parker says...Mike Capp wrote:Given File math.d: File main.d:dmd main math{...}\src\phobos\std\math.d(12): module math is in multiple defined Is there a way to resolve this? If module names have to be globally unique within a program, what's the point of package qualifiers?Are you using a module statement at the top of your module?No, I wasn't, and yes, the problem goes away if I add a module statement with an explicit package qualifier. Thanks for that. I'm still puzzled as to what's going on, though. If the package is part of the module identifier then there shouldn't have been a clash in the first place, and if it isn't then the module statement shouldn't have made any difference. Is this a (known) bug in D? cheers Mike
Aug 02 2005