Re: Module system of D2: to be fixed still

2009-04-24 Thread Kagamin
Denis Koroskin Wrote: > First, I can't import Foo, because it will lead to name collision. It means > that I have no access to enum Bar and its elements. For me no name collision happens when I import Foo, only enum is forward referenced, here you are safe to declare function with int parameter

Re: Module system of D2: to be fixed still

2009-04-23 Thread Georg Wrede
bearophile wrote: Leandro Lucarella: grauzone: - the current import semantics should be redone such that "import a.b.c.d;" works like "import d = a.b.c.d;", and add a new syntax like "import a.b.c.d.*;" to get the current behavior Shouldn't be static import a.b.c.d;? It's a little odd to g

Re: Module system of D2: to be fixed still

2009-04-22 Thread bearophile
Leandro Lucarella: > grauzone: > > - the current import semantics should be redone such that "import > > a.b.c.d;" works like "import d = a.b.c.d;", and add a new syntax like > > "import a.b.c.d.*;" to get the current behavior > > Shouldn't be static import a.b.c.d;? It's a little odd to get i

Re: Module system of D2: to be fixed still

2009-04-22 Thread Leandro Lucarella
grauzone, el 22 de abril a las 18:58 me escribiste: > Ah, the monthly bearophile modules-must-be-fixed thread. (It was only three > times?) > > Here are my ideas/concerns: > - the current import semantics should be redone such that "import > a.b.c.d;" works like "import d = a.b.c.d;", and add a

Re: Module system of D2: to be fixed still

2009-04-22 Thread grauzone
Ah, the monthly bearophile modules-must-be-fixed thread. (It was only three times?) Here are my ideas/concerns: - the current import semantics should be redone such that "import a.b.c.d;" works like "import d = a.b.c.d;", and add a new syntax like "import a.b.c.d.*;" to get the current behavio

Re: Module system of D2: to be fixed still

2009-04-22 Thread Denis Koroskin
On Wed, 22 Apr 2009 12:55:44 +0400, bearophile wrote: > The current module&package system of D2 needs to be fixed, it has some > conceptual/semantic/logic holes. It looks like the result a good design > stopped mid-way. > > I have discussed them three times in the past, and now that Phobos2 i

Re: Module system of D2: to be fixed still

2009-04-22 Thread davidl
在 Wed, 22 Apr 2009 16:55:44 +0800,bearophile 写道: The current module&package system of D2 needs to be fixed, it has some conceptual/semantic/logic holes. It looks like the result a good design stopped mid-way. I have discussed them three times in the past Yes, the package does not offer

Module system of D2: to be fixed still

2009-04-22 Thread bearophile
The current module&package system of D2 needs to be fixed, it has some conceptual/semantic/logic holes. It looks like the result a good design stopped mid-way. I have discussed them three times in the past, and now that Phobos2 is mostly here and only a better support for multi-threading progra