Compilation strategy

Walter Bright newshound2 at digitalmars.com
Mon Dec 17 00:31:19 PST 2012


On 12/16/2012 11:36 PM, Jacob Carlborg wrote:
> If a function needs to be template, inline or CTFE it can be manually put in the
> .di file. I assume that will work.

Of course it will. In fact, you can:

    copy foo.d foo.di

and it will always work. .di is really nothing more than a naming convention. 
There is no code whatsoever in the compiler that says:

    if (in a .di file)
        do this
    else
        do that

and that is on purpose.


More information about the Digitalmars-d mailing list