proposed @noreturn attribute

Daniel N via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 9 03:51:50 PDT 2017


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
{
}


More information about the Digitalmars-d mailing list