Nested Structs (Solution)

Rob T rob at ucora.com
Thu Dec 13 22:27:36 PST 2012


I guess the complicating factor is that a nested struct could not 
be copied out of one class into another of a different type, so I 
can see why it's not implemented. The compiler would have to 
prevent copies out, or the language would have to be modified to 
allow nesting but with some new convention to make it clear that 
the struct is nested, not sure if it's worth it though, you can 
always make do without it.

--rt


More information about the Digitalmars-d mailing list