Bug or miss feature in nested class?
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Oct 23 12:31:28 PDT 2006
"BCS" <BCS at pathlink.com> wrote in message
news:ehirtb$2ntu$8 at digitaldaemon.com...
> class C
> {
> class A{}
> }
> class D : C
> {
> class B : A{}
> }
>
> fails saying A is nested in C, not D
>
> Why should this be a problem? An action that A can perform on a C can be
> performed on a D. So havening an A object nested from a D object shouldn't
> be a problem. Deriving from A in something derived from C also shouldn't
> be a problem either.
>
> Thoughts??
I asked Walter his thoughts on this feature when 0.126 first came out with
nested classes. His response, best I can remember, was "AAAIIIIIEEEEEEE!"
:)
So I think it's just a matter of it being really difficult to implement.
More information about the Digitalmars-d-bugs
mailing list