On Tuesday, 9 June 2015 at 11:47:49 UTC, Kagamin wrote:
On Tuesday, 9 June 2015 at 10:48:22 UTC, Marc Schütz wrote:static assert() is your friend in this caseThe point is that in D you don't need to express ctfe guarantee at all. It just works.
Huh? As I understood you, you asked for a guarantee that a function is CTFEable, in order to "not break other people's code". static assert() gives you that:
static assert(__traits(compiles, { enum dummy = myFunction(); }));
