Write file at compile time?

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 4 04:04:10 PDT 2017


On Monday, 3 April 2017 at 21:20:41 UTC, Inquie wrote:
> On Monday, 3 April 2017 at 19:34:36 UTC, Adam D. Ruppe wrote:
>> [...]
>
> Because it the code doesn't compile one has to copy and paste 
> the pragma output to a d file and compile it to find the 
> errors. It is useful to help debug mixins. Since D is pretty 
> sorry at giving useful information for mixins it is easier to 
> write the mixins out to disk in a d file then input them back 
> in to the program. A simple static switch can alternate between 
> the two. If we could output at compile time then we could
>
> [...]

If you're fine with a custom dmd build, please open an issue on 
my dmd repo.


More information about the Digitalmars-d-learn mailing list