Error: 'this' is only defined in non-static member functions

A Guy With a Question aguywithaquestion at gmail.com
Thu Nov 23 00:17:46 UTC 2017


> here as non-static, nested class is associated with a specific 
> instance of the class and has access to that class instance via 
> its outer member.
>
> - Jonathan M Davis

Hmmm...now you have me very intrigued. What is a use-case where 
you'd want to use a non-static embedded class? Sorry if I'm 
asking too many questions. But there's a lot to dig into with 
this language.


More information about the Digitalmars-d-learn mailing list