Battle-plan for CTFE

David Nadlinger via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Sep 1 14:05:10 PDT 2016


On Thursday, 1 September 2016 at 21:01:46 UTC, Rory McGuire wrote:
> I'm actually asking why we can't catch the ctfe error.

You can, by using __traits(compiles, …).

> Surely the ctfe engine could be changed to catch unsupported 
> code errors. (Not invalid, just unsupported at CT).

It already does, see above. How is this related to try/catch?

  — David


More information about the Digitalmars-d-announce mailing list