Shouldn't safety be the default.

ryuukk_ ryuukk.dev at gmail.com
Tue Dec 26 11:32:15 UTC 2023


https://dlang.org/spec/function.html#safe-functions


-No casting from a pointer type to any type with pointers other 
than void*.
-No casting from any non-pointer type to a pointer type.
-No pointer arithmetic (including pointer indexing).
-Cannot access __gshared variables.
-No inline assembler.

I hope this never becomes the default


More information about the Digitalmars-d mailing list