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

Steven Schveighoffer schveiguy at yahoo.com
Wed Nov 22 22:37:46 UTC 2017


On 11/22/17 5:36 PM, Steven Schveighoffer wrote:
> This allows access to the outer class's members. So you need an instance 
> to instantiate.
> 
> I bet it's the same for interfaces.

All that being said, the error message is quite lousy.

-Steve


More information about the Digitalmars-d-learn mailing list