Once Again, Feature Request: Nested classes in separate scope

Vladimir Panteleev thecybershadow at gmail.com
Tue Nov 6 02:14:36 PST 2007


On Tue, 06 Nov 2007 12:11:04 +0200, downs <default_357-line at yahoo.de> wrote:

> Vladimir Panteleev wrote:
>> I think this could be done with the announced "alias foo this;" syntax.
>> (just declare a Foo in Bar and import its namespace)
>>
>
> Yes, but part of the point of the whole thing was to avoid declaring a
> Foo in Bar, because that implies a circular ownership relation.
>  --downs

Why do you call it a "circular relation"? Foo's declaration or implementation is still Bar-free.
And technically speaking, this is done in the same way - a nested class's "parent" class is nothing but a hidden member.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list