Compiling a template

Basile B. b2.temp at gmx.com
Thu Dec 6 22:53:30 UTC 2018


On Thursday, 6 December 2018 at 22:50:49 UTC, albertas-jn wrote:
> If templates are a compile-time feature and instances of 
> templates are generated by compiler at compile time, why is it 
> possible to compile a template definition with dmd -lib or -c?

Because to instantiate the source code is still used (-I). Just 
the D interface is even not enough.


More information about the Digitalmars-d-learn mailing list