digitalmars.D.bugs - BUG of the day - import ... conflicts with ...
- Antonio Monteiro (15/15) Apr 06 2005 compiler message:
- Thomas Kuehne (11/21) Apr 06 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Ant (4/6) Apr 06 2005 No.
- Ben Hinkle (6/9) Apr 06 2005 I get this sort of message when I have a public import that hides the
- Ant (13/22) Apr 06 2005 ok, ok... lets see, lets help Walter to produce a better compiler messag...
- Ben Hinkle (5/29) Apr 06 2005 Can you show us Attributes.d? Does it import std.stdio?
- Ant (9/31) Apr 06 2005 probably: I'm changing all printf to writef.
- Antonio Monteiro (13/18) Apr 06 2005 Can this simply be the old missing imports?!
compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d" there is no Attributes.object. changes I made to a other wise small program with about 20 modules and 25 classes: - added global enum - used the new enum as return type of a method overrided by several classes (class B:A , class C:B , class D:C ...). Another day another old bug :) I spend 2.5 hours with yesterday's bug, I can't do it again, I need to see results from the time I put in. aknowleadge that the bug report is usefull is a positive result. :( Ant
Apr 06 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Antonio Monteiro wrote:compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d" there is no Attributes.object. changes I made to a other wise small program with about 20 modules and 25 classes: - added global enum - used the new enum as return type of a method overrided by several classes (class B:A , class C:B , class D:C ...).Sample for reproduction? Do you have by chance an object.d outside of Phobos? Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCU5ww3w+/yD4P9tIRAoNeAJ43QrKmcY8bShXniFJ7GjwhALm3FQCfV9Zl e6HgE4itBb6thKxpDE0uFiY= =iotR -----END PGP SIGNATURE-----
Apr 06 2005
In article <mqici2-hp5.ln1 lnews.kuehne.cn>, Thomas Kuehne says...Sample for reproduction?I which...Do you have by chance an object.d outside of Phobos?No. Ant
Apr 06 2005
"Antonio Monteiro" <duitoolkit yahoo.ca> wrote in message news:d30478$189q$1 digitaldaemon.com...compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d"I get this sort of message when I have a public import that hides the offending declaration. It is odd to have one about "object", though. I wonder if it is because of the implicit "import object" that appear at the front of all D modules?
Apr 06 2005
In article <d30p9f$244e$1 digitaldaemon.com>, Ben Hinkle says..."Antonio Monteiro" <duitoolkit yahoo.ca> wrote in message news:d30478$189q$1 digitaldaemon.com...ok, ok... lets see, lets help Walter to produce a better compiler message: "hides declaration" what declaration? object? maybe Attribute declares something with some other entry from object.d (I don't have the code here) I tried to add "private" to all my imports maybe I missed some. (contrary to the private { import ...; } I type it for all imports and so make it easy to grep.) Antcompiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d"I get this sort of message when I have a public import that hides the offending declaration. It is odd to have one about "object", though. I wonder if it is because of the implicit "import object" that appear at the front of all D modules?
Apr 06 2005
"Ant" <Ant_member pathlink.com> wrote in message news:d30s4j$2866$1 digitaldaemon.com...In article <d30p9f$244e$1 digitaldaemon.com>, Ben Hinkle says...Can you show us Attributes.d? Does it import std.stdio?"Antonio Monteiro" <duitoolkit yahoo.ca> wrote in message news:d30478$189q$1 digitaldaemon.com...ok, ok... lets see, lets help Walter to produce a better compiler message: "hides declaration" what declaration? object? maybe Attribute declares something with some other entry from object.d (I don't have the code here)compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d"I get this sort of message when I have a public import that hides the offending declaration. It is odd to have one about "object", though. I wonder if it is because of the implicit "import object" that appear at the front of all D modules?I tried to add "private" to all my imports maybe I missed some. (contrary to the private { import ...; } I type it for all imports and so make it easy to grep.)me, too. I used to use private{ } but stopped exactly for tracking down these public/private conflicts.
Apr 06 2005
In article <d30sp8$292q$1 digitaldaemon.com>, Ben Hinkle says..."Ant" <Ant_member pathlink.com> wrote in message news:d30s4j$2866$1 digitaldaemon.com...later tonight I don't have it here.In article <d30p9f$244e$1 digitaldaemon.com>, Ben Hinkle says...Can you show us Attributes.d?"Antonio Monteiro" <duitoolkit yahoo.ca> wrote in message news:d30478$189q$1 digitaldaemon.com...ok, ok... lets see, lets help Walter to produce a better compiler message: "hides declaration" what declaration? object? maybe Attribute declares something with some other entry from object.d (I don't have the code here)compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d"I get this sort of message when I have a public import that hides the offending declaration. It is odd to have one about "object", though. I wonder if it is because of the implicit "import object" that appear at the front of all D modules?Does it import std.stdio?probably: I'm changing all printf to writef. that will change when I incorporate those functionalities into dool. I think I better to that sooner ratther the later, if it's another source of problems. but that's not the change I made when the compiler started complaining! Ant
Apr 06 2005
Antonio Monteiro wrote:compiler message: "phobos/std/stdio.d: import std.stdio.object conflicts with Attributes.object at Attributes.d" there is no Attributes.object.Can this simply be the old missing imports?! Yes, it is! :( I tried moving all imports to the module level. 10 or 15 missing imports were found by the compiler! added the missing ones and it compiles. then I moved the imports back to the class body and "almost" compiles (complain about a private var from the super class that is protected AND the classes are defined on the same module). If I am the only one using imports inside the class body should that be droped? Why do we have them on the first place? I asked about this over a year ago. Ant
Apr 06 2005