News for hackers. Stuff that matters.
Re:Classes in D with betterC by eps on Saturday November 20, 2021 @08:10AM (#29287766)
BetterC is a subset of D aimed at producing libraries that can be used from C.

https://dlang.org/spec/betterc.html

Re:Classes in D with betterC by ctsk on Saturday November 20, 2021 @01:24AM (#29286020)
Your /projects page isn't working =)
Re:Classes in D with betterC by ljmf00 on Saturday November 20, 2021 @08:58PM (#29293517)
Still in progress. You can see the projects I contribute either on codetrace or Github. https://codetrace.com/users/ljmf00 https://github.com/ljmf00
Re:Classes in D with betterC by calvin202y on Saturday November 20, 2021 @02:42AM (#29286313)
Can I use Exception from betterC with C++ class ?
Re:Classes in D with betterC by destructionator on Saturday November 20, 2021 @07:37AM (#29287556)
No. betterC is terrible and limits you with no real benefit outside the first few minutes of playing with it. I wish they'd stop advertising it; real D is better in every way. (you can use regular classes with real D with minimal runtime too: http://dpldocs.info/this-week-in-d/Blog.Posted_2020_07_27.ht... and the new trait the parent link talks about means no more mangle hack like I did last year which also will help it work cross compiler).

betterC just plain disables a bunch of features. With real D, you can start with an empty runtime then enable stuff as you want it.

...or frankly just use the standard runtime and find joy.

Re:Classes in D with betterC by skocznymroczny on Saturday November 20, 2021 @12:26PM (#29289999)
unless you are into WASM, and then it's back to betterC.