How to get the pointer of "this" ?

Johannes Loher johannes.loher at fg4f.de
Wed May 27 09:34:50 UTC 2020


On Tuesday, 26 May 2020 at 22:23:19 UTC, bauss wrote:
> On Tuesday, 26 May 2020 at 12:08:29 UTC, Johannes Loher wrote:
>> [...]
> You can just do this to get around it:
>
>          auto button = this;
>          log(&button);

True, somebody else posted the same idea already. But as 
explained, it doesn't do the correct thing.


More information about the Digitalmars-d-learn mailing list