static struct definition

Simen Kjaeraas simen.kjaras at gmail.com
Tue Aug 28 04:06:33 PDT 2012


On Tue, 28 Aug 2012 12:10:47 +0200, monarch_dodra <monarchdodra at gmail.com>  
wrote:

>  From TDPL: 7.18:
>
> "Unlike classes nested within classes, nested structs and nested classes  
> within
> structs don’t contain any hidden member outer—there is no special code  
> generated.
> The main design goal of nesting such types is to enforce the desired  
> access control."
>
> I suppose this has become obsolete then?
>     ...Or is it the other way around?

TDPL trumps most everything else, I believe.

-- 
Simen


More information about the Digitalmars-d-learn mailing list