all OS functions should be "nothrow @trusted @nogc"

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 1 10:50:59 PDT 2017


On Tue, Aug 01, 2017 at 05:12:38PM +0000, w0rp via Digitalmars-d wrote:
> Direct OS function calls should probably all be treated as unsafe,
> except for rare cases where the behaviour is very well defined in
> standards and in actual implementations to be safe. The way to get
> safe functions for OS functionality is to write wrapper functions in D
> which prohibit unsafe calls.

+1.


T

-- 
People say I'm indecisive, but I'm not sure about that. -- YHL, CONLANG


More information about the Digitalmars-d mailing list