|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - static import is in multiple defined
My projects are starting to grow and I really need to start using packages :) So I moved my userEvents module to user.events. But when I do.. static import user.events; ..I get : module events is in multiple defined. Does this mean that 'events' needs to be unique even though I use it statically and thus can only access it through user.events? Mar 01 2008
Erm, changing the name to events2 results in the same error. I must be doing something wrong :/ Mar 01 2008
"Saaa" <empty needmail.com> wrote in message news:fqdfj4$1ss2$1 digitalmars.com...My projects are starting to grow and I really need to start using packages :) So I moved my userEvents module to user.events. But when I do.. static import user.events; ..I get : module events is in multiple defined. Does this mean that 'events' needs to be unique even though I use it statically and thus can only access it through user.events? Mar 01 2008
Does the module declaration at the tope of user.events say "module user.events;"? Mar 01 2008
On Sun, 02 Mar 2008 08:26:48 +0100, Saaa wrote:Does the module declaration at the tope of user.events say "module user.events;"? Mar 01 2008
Ok, I thought that putting it in a folder would be enough :/ Thanksyou need to have module user.events; in you events.d file or it will not work. Mar 01 2008
you need to have module user.events; in you events.d file or it will not work. Mar 02 2008
Ignore that. My badmodule user.events is in multiple packages user.events. What else am I doing wrong? Mar 02 2008
|