[Issue 19268] BetterC turns off DRuntime for CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 26 17:04:41 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19268

ZombineDev <petar.p.kirov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov at gmail.com

--- Comment #5 from ZombineDev <petar.p.kirov at gmail.com> ---
I guess the trickiest problem to solve is what to do about is(typeof({ code;
})) and __traits(compiles, { code; }). Allowing those constructs to yield true
while containing non-betterc code would lead to logical contradictions.
Disallowing betterc code in such speculative contexts, while allowing it in
CTFE context would be strange.

--


More information about the Digitalmars-d-bugs mailing list