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

John Colvin john.loughran.colvin at gmail.com
Fri Apr 3 11:27:27 UTC 2020


On Friday, 3 April 2020 at 10:15:35 UTC, Mathias LANG wrote:
> On Friday, 3 April 2020 at 09:50:39 UTC, Walter Bright wrote:
>> On 3/27/2020 5:32 AM, aliak wrote:
>>> So my understanding is if extern (C) is applied on a function 
>>> declaration, then an annotation is explicitly required?
>>
>> No. Without an explicit annotation, it will be the default 
>> (@safe).
>
> And absolutely no one else thing it's a good idea, because it's 
> essentially slapping `@trusted` on all `extern(C)` functions.

I think I agree. I'd sooner have no default at all on functions 
without implementation (i.e. you have to explicitly say @system).


More information about the Digitalmars-d mailing list