Re: deliberately failing compilation when errors are in embedded DSL

2015-02-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/18/15 12:43 PM, Dmitri Makarov wrote: I'm developing an embedded DSL using CTFE. The DSL code is translated into D code and mixin-ed into the D code of user's application. In order to provide meaningful error messages the DSL compiler always intercepts all errors in the DSL code and reports

deliberately failing compilation when errors are in embedded DSL

2015-02-18 Thread Dmitri Makarov via Digitalmars-d-learn
I'm developing an embedded DSL using CTFE. The DSL code is translated into D code and mixin-ed into the D code of user's application. In order to provide meaningful error messages the DSL compiler always intercepts all errors in the DSL code and reports them at compile-time using pragma(msg, .