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

Rufus Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 19 10:03:31 PDT 2016


On Tuesday, 19 July 2016 at 16:58:12 UTC, Steven Schveighoffer 
wrote:
> On 7/19/16 12:52 PM, Rufus Smith wrote:
>> On Tuesday, 19 July 2016 at 15:58:49 UTC, Steven Schveighoffer 
>> wrote:
>>>[...]
>>
>> Yes, but then this = null. I matters not for my use case.
>
> 'this' is not null in either case. There is no 'this'.
>

Please stop saying that:

https://en.wikipedia.org/wiki/This_(computer_programming)

this is more general than you think.



More information about the Digitalmars-d-learn mailing list