[Issue 19873] function should be by default @system even with -preview=dip1000

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 12 09:10:34 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19873

Mathias LANG <pro.mathias.lang at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |pro.mathias.lang at gmail.com
         Resolution|WONTFIX                     |---
           Severity|enhancement                 |normal

--- Comment #7 from Mathias LANG <pro.mathias.lang at gmail.com> ---
> As you know, I'd like to see @safe as the default. While this issue is a bug, it's in the direction we need to go anyway so it shouldn't be "fixed".

What ? It *is* a bug. By the current definition of the language, an error that
shouldn't be triggered in `@system` code is triggered in `@system` code.

`@safe` by default is orthogonal and should be handled on its own. Breaking the
language because "we're going to do it" is not reasonable, especially when this
DIP hasn't been accepted and is so far into the future.

--


More information about the Digitalmars-d-bugs mailing list