D not considered memory safe
Walter Bright
newshound2 at digitalmars.com
Mon Jul 15 18:20:09 UTC 2024
On 7/11/2024 3:18 AM, Timon Gehr wrote:
> If even the main language designer advocates for randomly sprinkling `@trusted`
> to shut up the compiler, there is no hope for memory safe D.
The only way to do a conversion of a large program is to mark them all @trusted
and then fix the functions one by one. The remaining @trusted annotations are
the TODO list.
If there's another practical way, I'm not aware of it.
More information about the Digitalmars-d
mailing list