Memory Safe Programming

GB gb421 at gmail.com
Wed Aug 19 23:22:08 UTC 2026


On Wednesday, 19 August 2026 at 16:01:41 UTC, user1234 wrote:
> On Tuesday, 18 August 2026 at 16:48:07 UTC, Kapendev wrote:
>> [...]
>> Slices are part of the language, for example.
>
> indeed. Now I realize that a part of this topic was too focused 
> on `@safe`. Actually D without `@safe` brings safety already. 
> Temporal safety with the GC and spacial safety with bounds 
> checks.

If you program in D's betterC subset as I do, then the story 
varies.

Many of the 'characteristics that are analogous to C remain':
https://blog.dlang.org/archive/2017/08/23/d-as-a-better-c/

D, even with its betterC subset certainly raises the bar over C - 
there is no doubt about that.But many of the issues raised in 
'The Wrong Memory' still apply to that subset.
https://strawberry9.github.io/the-wrong-memory/cover.html




More information about the Digitalmars-d mailing list