proposed @noreturn attribute

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 11 00:37:26 PDT 2017


On 11 July 2017 at 08:46, Jacob Carlborg via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 2017-07-10 22:00, Walter Bright wrote:
>
>> Yes. Not having it makes enforce(), for example, generate poor code.
>
>
> Not sure I understand. "enforce" will return if the condition is true.
>

Right, you can't put noreturn on enforce itself, but you can on the
internal bailOut function called by enforce.


More information about the Digitalmars-d mailing list