Passing this to void *
Tim Hsu
tim37021 at gmail.com
Wed Nov 22 15:17:21 UTC 2017
On Wednesday, 22 November 2017 at 15:14:32 UTC, Stefan Koch wrote:
> On Wednesday, 22 November 2017 at 15:11:08 UTC, Tim Hsu wrote:
>> On Wednesday, 22 November 2017 at 15:07:54 UTC, Stefan Koch
>>>
>>> &this will do.
>>
>> I've tried it in the first place.
>>
>> ...
>>
>> Error: this is not an lvalue
>
> In that case casting to void* should be fine.
But..The compiler still does not produce the executable...
foo(&this);
app.d(17): Error: this is not an lvalue
More information about the Digitalmars-d-learn
mailing list