proposed @noreturn attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 9 03:59:43 PDT 2017


On Sunday, 9 July 2017 at 10:51:50 UTC, Daniel N wrote:
> On Sunday, 9 July 2017 at 10:31:47 UTC, Mr.D wrote:
>> On Saturday, 8 July 2017 at 10:15:39 UTC, Walter Bright wrote:
>>
>>> Has anyone a better idea?
>>
>> What about
>>
>> scope(exit) assert(0);
>>
>> ?
>
> void func()
> out { assert(0); }
> body
> {
> }

Yes, this!

-Steve


More information about the Digitalmars-d mailing list