Validate static asserts

user1234 user1234 at 12.de
Fri Sep 9 19:25:38 UTC 2022


On Friday, 9 September 2022 at 17:35:44 UTC, Dennis wrote:
> On Friday, 9 September 2022 at 16:41:54 UTC, Andrey Zherikov 
> wrote:
>> What's about new `compileOutput` trait that returns compiler 
>> output?
>> ```d
>> static assert(__traits(compileOutput, { <my code> }) == 
>> "message");
>> ```
>
> As a compiler dev, that sounds terrifying. It would make 
> basically every change to dmd a breaking change.

Ah yes, it is so stupid that error message are part of the 
semantics


More information about the Digitalmars-d-learn mailing list