private selective imports

2014-08-06 Thread Vlad Levenfeld via Digitalmars-d-learn
Is there any way to make selective imports private? I've got a name clash from importing an all module that has a bunch of public imports, one of which is circular, it goes sort of like this: module math.all; public: import geometry; import vectors; --- module vectors; struct Vector {}

Re: private selective imports

2014-08-06 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 06, 2014 at 06:19:34PM +, Vlad Levenfeld via Digitalmars-d-learn wrote: Is there any way to make selective imports private? I've got a name clash from importing an all module that has a bunch of public imports, one of which is circular, it goes sort of like this: module

Re: private selective imports

2014-08-06 Thread Dicebot via Digitalmars-d-learn
Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314

Re: private selective imports

2014-08-06 Thread sigod via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 +1 vote from me.

Re: private selective imports

2014-08-06 Thread Gary Willoughby via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 Yeah this is a famous bug that seems to catch everyone out at some stage.

Re: private selective imports

2014-08-06 Thread Vlad Levenfeld via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 +1 from me as well. This is unfortunate. D otherwise has a very comfortable import system.

Re: private selective imports

2014-08-06 Thread Dicebot via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 19:31:04 UTC, Jonathan M Davis wrote: On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 Yeah, it's why I'd suggest that folks not use selective imports right now. But people seem to

Re: private selective imports

2014-08-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 Yeah, it's why I'd suggest that folks not use selective imports right now. But people seem to really love the feature, so they use it and keep running into this

Re: private selective imports

2014-08-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 19:35:02 UTC, Dicebot wrote: On Wednesday, 6 August 2014 at 19:31:04 UTC, Jonathan M Davis wrote: On Wednesday, 6 August 2014 at 18:33:23 UTC, Dicebot wrote: Most voted DMD bug : https://issues.dlang.org/show_bug.cgi?id=314 Yeah, it's why I'd suggest that folks

Re: private selective imports

2014-08-06 Thread Vlad Levenfeld via Digitalmars-d-learn
Sure, but people keep using them at the module-level, which really shouldn't be done until the bug is fixed. IMHO, we'd be better off making it illegal to use selective imports at the module-level rather than keeping it as-is. - Jonathan M Davis I'm curious, what's the problem with it

Re: private selective imports

2014-08-06 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 06, 2014 at 10:07:53PM +, Vlad Levenfeld via Digitalmars-d-learn wrote: Sure, but people keep using them at the module-level, which really shouldn't be done until the bug is fixed. IMHO, we'd be better off making it illegal to use selective imports at the module-level rather

Re: private selective imports

2014-08-06 Thread Dicebot via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 22:24:24 UTC, H. S. Teoh via Digitalmars-d-learn wrote: My guess is that it requires knowledge of dmd internals that only few people have, and those few people have other fires to put out right now. Kenji has a PR with new symbol overload resolution system that

Re: private selective imports

2014-08-06 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 06, 2014 at 10:55:14PM +, Dicebot via Digitalmars-d-learn wrote: On Wednesday, 6 August 2014 at 22:24:24 UTC, H. S. Teoh via Digitalmars-d-learn wrote: My guess is that it requires knowledge of dmd internals that only few people have, and those few people have other fires to