Discussion Thread: DIP 1028--Make @safe the Default--Final Review

Timon Gehr timon.gehr at gmx.ch
Mon Apr 6 01:43:58 UTC 2020


On 06.04.20 02:09, Jonathan Marler wrote:
> On Saturday, 4 April 2020 at 06:53:57 UTC, Walter Bright wrote:
>> [....]
>> Now, as to what to do. I spent a few minutes and added `@system:` in 
>> to the C headers in druntime for windows, posix, and linux. Done. I 
>> hope someone else will do it for freebsd, etc., if not I'll go do that 
>> to.
>>
> 
> The thought crossed my mind that this same reasoning could be applied as 
> a counter-argument for this DIP:
> 
> ... So functions are not safe by default?
> 
> Now, as to what to do. I spent a few minutes and added
> `@safe:` in to the source files in druntime for windows, posix,
> and linux. Done. I hope someone else will do it for freebsd,
> etc., if not I'll go do that to.
> ...

So you annotated all those extern(C) function prototypes as @safe? :)

> That being said, it seems like a weak argument, so I don't think it 
> changes much, but I thought it was interesting.
> 



More information about the Digitalmars-d mailing list