D not considered memory safe

Dennis dkorpel at gmail.com
Sat Jul 13 17:16:40 UTC 2024


On Thursday, 11 July 2024 at 16:26:59 UTC, Walter Bright wrote:
> The way to do it incrementally is to start by labeling each 
> function @trusted, then making them @safe one by one.
>
> I've done this, it works.

I know you've done the first part, because there's now 1122 
`@trusted` functions in  dmd.backend. Many of them have an unsafe 
interface such as:

```D
@trusted
void list_delete(list_t list) { free(list); }
```

Not much actual `@safe` code has come from it unfortunately.



More information about the Digitalmars-d mailing list