import package.*

Ary Manzana ary at esperanto.org.ar
Wed Oct 10 03:37:41 PDT 2007


Ary Manzana escribió:
> Alexander Panek escribió:
>> On Wed, 10 Oct 2007 12:08:55 +0200
>> Yaga-Shura <Yaga-Shura at yashu.de> wrote:
>>
>>> I'm working for some days now with DMD 2. My question is: is there
>>> any way to include all modules that are in one package? e.g.:
>>
>> I think this question has been raised /so/ often, that you should find
>> something in both, d.D.learn and d.D, newsgroups about it.
>>
>> Short answer: package/all.d publically importing all modules you want.
>>
> 
> I also see a downside as to how DMD is implemented: when an import is 
> found, it's module is parsed. So if you had .*, all the modules in that 
> package would need to be parsed...

Well, thinking a little more, if you had import all.d, DMD would also do 
that... Humm...



More information about the Digitalmars-d mailing list