[Issue 19875] [betterC] dmd 2.0.86 Allowed class compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 15 13:36:39 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19875
--- Comment #2 from joaopaulo1339 at outlook.com ---
(In reply to Seb from comment #1)
> Why should it?
> What gave you the impression that it should be?
>
> BetterC doesn't support class allocation (via GC) yet.
>
> In general, classes are a bit challenging with betterC
>
> Though, I recommend reading this great article:
>
> https://theartofmachinery.com/2018/08/13/inheritance_and_polymorphism_2.html
Because D BetterC page list classes as an removed feature
https://dlang.org/spec/betterc.html#consequences
So, if classes are removed, why my example compiles just fine?
--
More information about the Digitalmars-d-bugs
mailing list