News for hackers. Stuff that matters.
Re:Driving with D by Diggsey on Tuesday June 01, 2021 @12:31PM (#27357145)
My mistake - SafeD was introduced since I stopped using D, so I was going off this article:

https://dlang.org/articles/safed.html#safed-subset

> When you enter SafeD, you leave your pointers, unchecked casts and unions at the door. Memory management is provided to you courtesy of Garbage Collection.

Does D provide the necessary tooling to be able to expose a safe API for something which needs to allocate memory, without needing a GC?

Re:Driving with D by alphaglosined on Tuesday June 01, 2021 @12:46PM (#27357438)
You are stuck with dropping to @trusted and calling the appropriate allocator API.

Following that you will want to check for null ext. to make it actually @safe in practice and not just typed as such.

Re:Driving with D by zombinedev on Wednesday June 02, 2021 @06:50AM (#27367140)