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

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 26 04:55:36 PDT 2017


On 26.07.2017 13:22, Steven Schveighoffer wrote:
> On 7/26/17 6:01 AM, Timon Gehr wrote:
>> On 26.07.2017 03:09, Steven Schveighoffer wrote:
>>> ...
>>> In other words, I think we can assume for any C functions that are 
>>> passed pointers that dereference those pointers, passing null is 
>>> safely going to segfault.
>>
>> I'm not going to assume that.
> 
> Tell you what, when you find a D platform that this doesn't happen, > we can fix it with a version statement ;)
> 
> -Steve

The burden of proof is on you, not me. You are advocating the C approach 
to memory safety.


More information about the Digitalmars-d mailing list