D not considered memory safe

Dennis dkorpel at gmail.com
Thu Jul 25 21:13:31 UTC 2024


On Thursday, 25 July 2024 at 02:04:57 UTC, Walter Bright wrote:
> I appreciate your help with this!

Thanks!

> The hard problems aren't being tackled, like toChars().
>
> There's no place to start.

Well, giving a safe interface to `error` and replacing `toChars` 
with `toString` is a start.

> What works is doing incrementally, passing the test suite with 
> each increment. What doesn't work is do it all at once.

Agreed, but you can also incrementally replace unsafe interfaces 
with safe ones. No need to put `@trusted` on unsafe interfaces.

> I don't know why the bootstrap compiler needs to be so old?

We have to ask Iain. The latest PR trying to bump it from 2.076 
to 2.083 got closed: https://github.com/dlang/dmd/pull/16158



More information about the Digitalmars-d mailing list