On Tuesday, 24 January 2017 at 11:19:58 UTC, TheFlyingFiddle wrote:
Does D have any facilities that could make this possible?

It seems that there is a feature I was unaware of/forgot called Import Expressions.

unittest
{
   enum s = import("myfile");
}

Is there something similar to this for outputting files at compile-time? Or do I need to keep the source around and write it at run-time?

Reply via email to