www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - static import is in multiple defined

reply "Saaa" <empty needmail.com> writes:
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
next sibling parent "Saaa" <empty needmail.com> writes:
Erm, changing the name to events2 results in the same error.
I must be doing something wrong :/ 
Mar 01 2008
prev sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"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?
Does the module declaration at the tope of user.events say "module user.events;"? DMDFE's errors for imports and modules are absolutely *impenetrable*. This one error message maps to several possible causes, none of which are obvious from what it (rather ungrammatically) says.
Mar 01 2008
parent reply "Saaa" <empty needmail.com> writes:
 Does the module declaration at the tope of user.events say "module 
 user.events;"?
No, I put events.d in 'user' dir.
 DMDFE's errors for imports and modules are absolutely *impenetrable*. 
 This one error message maps to several possible causes, none of which are 
 obvious from what it (rather ungrammatically) says.
handy :)
Mar 01 2008
parent reply Jesse Phillips <jessekphillips gmail.com> writes:
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;"?
No, I put events.d in 'user' dir.
 DMDFE's errors for imports and modules are absolutely *impenetrable*.
 This one error message maps to several possible causes, none of which
 are obvious from what it (rather ungrammatically) says.
handy :)
you need to have module user.events; in you events.d file or it will not work.
Mar 01 2008
next sibling parent "Saaa" <empty needmail.com> writes:
Ok, I thought that putting it in a folder would be enough :/
Thanks

 you need to have module user.events; in you events.d file or it will not
 work. 
Mar 01 2008
prev sibling parent reply "Saaa" <empty needmail.com> writes:
 you need to have module user.events; in you events.d file or it will not
 work.
module user.events is in multiple packages user.events. What else am I doing wrong?
Mar 02 2008
parent "Saaa" <empty needmail.com> writes:
Ignore that. My bad

 module user.events is in multiple packages user.events.

 What else am I doing wrong?
 
Mar 02 2008