So these two compile and, in non-debug builds, run just fine

Mathias Lang via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 25 15:04:44 PST 2016


2016-11-25 16:30 GMT+01:00 Steven Schveighoffer via Digitalmars-d <
digitalmars-d at puremagic.com>:

>
> But I think Walter's scope changes (DIP 1001 I think?) will make it so the
> compiler rejects this even in non-safe mode.
>
> -Steve
>

You are correct that DIP1000 will fix that. However it will only be
enforced in @safe mode, sadly.
@Ethan: If you slap a `@safe` on this function, they don't compile anymore.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20161126/3722e7ec/attachment-0001.html>


More information about the Digitalmars-d mailing list