Compilation strategy

deadalnix deadalnix at gmail.com
Mon Dec 17 12:51:09 PST 2012


On Monday, 17 December 2012 at 09:40:22 UTC, Walter Bright wrote:
> On 12/17/2012 12:54 AM, deadalnix wrote:
>> More seriously, I understand that in some cases, di are 
>> interesting. Mostly if
>> you want to provide a closed source library to be used by 3rd 
>> party devs.
>
> You're missing another major use - encapsulation and isolation, 
> reducing the dependencies between parts of your system.
>

For such a case, bytecode is a superior solution as it would 
allow CTFE.

> Do you really want to be recompiling the garbage collector for 
> every module you compile? It's not because the gc is closed 
> source that .di files are useful.



More information about the Digitalmars-d mailing list