Creation of a Build tool on top of the D compiler

Bill Baxter dnewsgroup at billbaxter.com
Sat Jan 27 14:25:45 PST 2007


Sean Kelly wrote:
> Andrey Khropov wrote:
>> kris wrote:
>>
>>> Especially when you
>>> can't successfully utilize certain types of D code from a library -- 
>>> such as
>>> templates.
>>
>> I strongly believe that compiler *should* be able to compile templates 
>> to a
>> some intermediate form and put it into libraries. Otherwise you will 
>> be forced
>> to create d 'header' files for your template-enabled libraries or even 
>> use them
>> as source code only.
> 
> C++ tried this with "export" and it's been a bit of a fiasco.  Last I 
> heard, EDG had it implemented (they were the only compiler team to have 
> done so), and the benefit didn't seem all that great.
> 
> 
> Sean

Crazy idea, but what if there were an object format could contain 
something like byte-compiled templates along with real binary code.  I 
guess it would be sort of like precompiled headers that get stuck in the 
final library.

Anyway, it would be cool if I could have all of Boost in one big 
"library" file rather than a billion little files scattered all over the 
place.

Sorting out all the #include issues seems like it would be tough though. 
  The files depend on being spread all over the place.

--bb



More information about the Digitalmars-d mailing list