[Issue 18024] checkedint.Warn should be @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 15 14:59:45 UTC 2017


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

--- Comment #6 from Seb <greensunny12 at gmail.com> ---
> The problem with trying to make Warn @safe is File is still unsafe and will be for the foreseeable future.

Well, but we can use the same "trick" / "workaround" as used for stdout?

> IMO, Abort should be modified to not use Warn, and a new Hook called debug should 
give the same behavior as Abort has now. That way, by default checked is @nogc
@safe nothrow pure

That sounds very reasonable!

--


More information about the Digitalmars-d-bugs mailing list