Alternatives to OOP in D
Kapendev
alexandroskapretsos at gmail.com
Sat Nov 15 14:04:47 UTC 2025
On Friday, 14 November 2025 at 23:35:02 UTC, Peter C wrote:
> Here's the make it yourself way - for those don't have better
> things to do with their life ;)
No idea why you use a vtable here. They are useful sometimes, but
also easy to ignore. A custom sum or union type would also make
things a lot nicer. Here is an epic
[example](https://github.com/Kapendev/joka/blob/main/examples/_006_union.d).
More information about the Digitalmars-d-learn
mailing list