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.