On Wednesday, 7 March 2018 at 22:02:17 UTC, sarn wrote:

When I wrote Xanthe a year ago, I rolled my own classes using alias this and explicit vtables:
https://gitlab.com/sarneaud/xanthe/blob/master/src/game/rigid_body.d#L15
(I did this because normal D classes use the druntime library, and Xanthe was an experiment in not using the D runtime at all.)

I'm curious about this comment in the code:

Unfortunately, "protected" doesn't work, so a lot of members end up being public. This seems to just be an oversight in the language, so maybe it will change in future versions of D.

What specifically do you think should be changed in the language to support your idea?

Thanks,
Mike



Reply via email to