D not considered memory safe

Paolo Invernizzi paolo.invernizzi at gmail.com
Thu Jul 11 07:53:55 UTC 2024


On Thursday, 11 July 2024 at 05:59:08 UTC, Walter Bright wrote:

> Second, just declare them @trusted until one gets around to a 
> proper refactoring.
>
> In fact, I've been doing just that. Adding @safe: at the top, 
> and then everything that fails to compile gets marked @trusted. 
> Eventually, refactor the code as time permits.
>
> No need for Yet Another Attribute.

So, the solution is just turn your program into a gigantic facade 
of @safe, until you have time to refactor it as really @safe?

Meh ...








More information about the Digitalmars-d mailing list