DIP1028 - Rationale for accepting as is

Francesco Mecca me at francescomecca.eu
Fri May 22 20:59:41 UTC 2020


On Friday, 22 May 2020 at 12:25:23 UTC, jmh530 wrote:
> On Friday, 22 May 2020 at 01:22:19 UTC, Walter Bright wrote:
>> [snip]
>
> Thank you for your reply.
>
> How about some time before this DIP is fully in the language, a 
> compiler flag is added that will produce warnings for when 
> extern prototypes without explicit @safe/@trusted/@system are 
> used? Or something like that. I have a good sense of when my 
> own code uses extern(C), but not always other people's.

There is no reason to make the compiler do that. I think it would 
be more appropriate for D-scanner to do that or more practically 
for dub

https://github.com/dlang-community/D-Scanner


More information about the Digitalmars-d-announce mailing list