`this` and nested structs

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu May 10 06:22:37 UTC 2018

On Thursday, May 10, 2018 03:23:50 Mike Franklin via Digitalmars-d-learn 
> My understanding is that nested structs have an implicit context
> pointer to their containing scope.

A non-static struct inside a function does, but I suspect that you're
thinking about non-static nested classes (within classes), which I believe
was done to be compatible with Java (in order to make porting code easier).
Structs don't have that.

- Jonathan M Davis

More information about the Digitalmars-d-learn mailing list