Classes in D with betterC

tsbockman thomas.bockman at gmail.com
Sat Nov 20 08:04:08 UTC 2021


On Saturday, 20 November 2021 at 04:58:52 UTC, Walter Bright 
wrote:
> https://lsferreira.net/posts/zet-1-classes-betterc-d/
>
> by Luís Ferreira

Great! `__traits(initSymbol, T)` will solve some problems for my 
current project.

Some other `class` related issues I've run into trying to get 
going with classes in dasBetterC:

`extern(C++) class` dynamic casts are completely broken:
https://issues.dlang.org/show_bug.cgi?id=21690

The GC never calls `extern(C++) class` instance destructors:
https://issues.dlang.org/show_bug.cgi?id=21693

Non-mutable `extern(D) class` `scope` instances cannot be created:
https://issues.dlang.org/show_bug.cgi?id=21692

Template breaks return annotation for `class` reference returned 
by struct method:
https://issues.dlang.org/show_bug.cgi?id=22528


More information about the Digitalmars-d-announce mailing list