How to get the "this" ptr of a lambda inside the lambda?

Rufus Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 18 23:32:32 PDT 2016


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

Lambda's are delegates and delegates have a "this" type of 
pointer. I would like to get at it inside the lambda to check for 
some things. I'm doing some funky stuff. I'm not concerned about 
the scope or what this actually pointers to or anything like 
that, just need it's value for debugging.

Thanks.




More information about the Digitalmars-d-learn mailing list