Struct inside a class: How to get outer?
Nick Sabalausky (Abscissa)
SeeWebsiteToContactMe at semitwist.com
Sun Dec 3 09:57:33 UTC 2017
On 12/03/2017 03:46 AM, bauss wrote:
> On Sunday, 3 December 2017 at 07:38:47 UTC, Jonathan M Davis wrote:
>> As I understand it, there is no outer for nested structs, only nested
>> classes. So, you'll either have to use a nested class or explicitly
>> pass a reference to the outer class to the nested struct.
>>
> It wouldn't make much sense either, if a struct was able to do it.
>
Why is that?
More information about the Digitalmars-d-learn
mailing list