digitalmars.D - A language over D
Hi everyone. My name is ziyaad. I am new to dlang forum. So basically I made this thread for some questions and advice from you guys. So from beginning let's start I am designing a language named zinc which will be memory safe similar to rust but simpler than it. I have created 8 rules of memory safety which I will discuss if I got sometime. So basically in the beginning I was thinking of using zig as backend for zinc because it offered lightweight compilier and also cross compilation and good heap things. And in some way through internet I came across ldc which was second option for most lightweight compilier and somedays later I came to know even defer for first time was made in d and more research of d found that d is powerhouse of programming languages. But soon I came to know that d has a gc and I mistakenly thought that d only have gc and my choice was still zig as backend. But few days earlier I came across D's betterc which was the thing I wanted but it was not over,I found the hidden power of d that it is only language which can directly use cpp libs without needing extern c which killed me. And now I decided to use d as backend for zinc,and D's scope for doing RAII work. I have few questions does I am thinking something wrong and some features of d will be not working in betterc mode also rather than CTFE & scope what are more D's powerful features that I don't know please list me about them
Feb 19
On Thursday, 19 February 2026 at 13:50:43 UTC, Ziyaad wrote:But soon I came to know that d has a gc and I mistakenly thought that d only have gc and my choice was still zig as backend. But few days earlier I came across D's betterc which was the thing I wanted but it was not over,I found the hidden power...I have few questions does I am thinking something wrong and some features of d will be not working in betterc mode also rather than CTFE & scope what are more D's powerful features that I don't know please list me about themThe `-betterC` flag just removes the D runtime . Being able to avoid the GC is something you can do with or without it. So keep that in mind if you decide to actually use it. It's like going to Zig or Odin and removing their standard libraries. The normal way to avoid the GC in D is to use things like the ` nogc nothrow` attributes or the `-vgc` flag. The first is more strict and the second depends on you checking. Check some projects that do avoid the GC. NuMem, NuLib, Joka, ...
Feb 19
On Thursday, 19 February 2026 at 17:11:15 UTC, Kapendev wrote:On Thursday, 19 February 2026 at 13:50:43 UTC, Ziyaad wrote:Thanks for the replyBut soon I came to know that d has a gc and I mistakenly thought that d only have gc and my choice was still zig as backend. But few days earlier I came across D's betterc which was the thing I wanted but it was not over,I found the hidden power...I have few questions does I am thinking something wrong and some features of d will be not working in betterc mode also rather than CTFE & scope what are more D's powerful features that I don't know please list me about themThe `-betterC` flag just removes the D runtime . Being able to avoid the GC is something you can do with or without it. So keep that in mind if you decide to actually use it. It's like going to Zig or Odin and removing their standard libraries. The normal way to avoid the GC in D is to use things like the ` nogc nothrow` attributes or the `-vgc` flag. The first is more strict and the second depends on you checking. Check some projects that do avoid the GC. NuMem, NuLib, Joka, ...
Feb 20








Ziyaad <zsorg34 gmail.com>