5 ms·
Classes in D with betterC
- deleted 5y ago[deleted]
- ctsk 5y agoYour /projects page isn't working =)
- ljmf00 5y agoStill in progress. You can see the projects I contribute either on codetrace or Github. https://codetrace.com/users/ljmf00 https://codetrace.com/users/ljmf00 https://github.com/ljmf00 https://github.com/ljmf00
- calvin202y 5y agoCan I use Exception from betterC with C++ class ?
- destructionator 5y agoNo. 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.html#zero-runtime-classes 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.
- skocznymroczny 5y agounless you are into WASM, and then it's back to betterC.
- eps 5y agoBetterC is a subset of D aimed at producing libraries that can be used from C. https://dlang.org/spec/betterc.html https://dlang.org/spec/betterc.html