Struct inside a class: How to get outer?

Jacob Carlborg doob at me.com
Sun Dec 3 16:24:20 UTC 2017


On 2017-12-03 10:57, Nick Sabalausky (Abscissa) wrote:
> On 12/03/2017 03:46 AM, bauss wrote:
>> It wouldn't make much sense either, if a struct  was able to do it.
>>
> 
> Why is that?

It would get an extra field, making the size of the struct larger and 
not compatible with a C struct. But I guess you wouldn't use a nested 
struct for that anyway.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list