***** D method override mechanisms borked ******
Sean Kelly
sean at f4.ca
Sun Jun 25 08:47:19 PDT 2006
Jari-Matti Mäkelä wrote:
>
> Damn, now all visibility / accessibility rules in D are totally broken.
>
> I really don't think the system is ever going to work the way it is
> documented now. The interface stuff and part of classes use the covariance
> rule in inheritance. It's also possible to contravariantly inherit a base
> class using class foo: private bar {} (a la C++). Then there are private
> attributes in classes and modules that don't work so well either. Hmmpf,
> hope someone has time to sort this out. We're counting on you, Walter :)
I think a careful programmer could make it work through extensive use of
'final'. However, it's obviously preferable to simply fix the bug :-)
Sean
More information about the Digitalmars-d-bugs
mailing list