Transition to @safe by default

Walter Bright newshound2 at digitalmars.com
Tue Aug 6 00:21:21 UTC 2024


On 7/30/2024 9:24 AM, Dukc wrote:
> ```D
> // unattributed
> extern(c) void free(void*);
> 
> // inferred as @safe!
> auto foo() => free(new int);
> ```

That's correct.

What we could do is require functions with no bodies to have an attribute.


More information about the dip.ideas mailing list