Battle-plan for CTFE

Johannes Pfau via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Aug 30 03:43:32 PDT 2016


Am Tue, 30 Aug 2016 12:42:35 +0200
schrieb Johannes Pfau <nospam at example.com>:

> @nogc is only meaningful at runtime. So this could work:
> 
> module foo;
> @nogc:
> [...]
> 
> string ctfeOnly(string name)
> {
>     static assert(!__ctfe);

This should be
    static assert(__ctfe);
of course.


More information about the Digitalmars-d-announce mailing list