[OffTopic] A vulnerability postmortem on Network Security Services

Tejas notrealemail at gmail.com
Thu Dec 2 17:39:11 UTC 2021

On Thursday, 2 December 2021 at 17:36:18 UTC, H. S. Teoh wrote:
> On Thu, Dec 02, 2021 at 05:11:09PM +0000, Paul Backus via 
> Digitalmars-d wrote:
>> On Thursday, 2 December 2021 at 16:44:42 UTC, Tejas wrote:
>> > 
>> > Wish the `@safe` by default DIP had passed :(
>> > Any hope of reviving it and merging into master??
>> Only if someone can (a) come up with a better solution for 
>> handling
>> `extern(C)` functions, and (b) convince Walter to accept it.
> The solution is very simple: extern(C), extern(C++), and extern 
> anything
> except extern(D) really, should be @system, and extern(D) (the 
> default)
> should be @safe.
> The real issue is convincing Walter to accept this.
> T

You'll have to atleast create `@trusted` wrappers around each 
such function though, if you want normal D functions to call them 

That's why I feel we should allow `@trusted` to be annotated on 
`extern` functions.

More information about the Digitalmars-d mailing list