On Sunday, 24 May 2020 at 17:40:10 UTC, bauss wrote:
On Sunday, 24 May 2020 at 17:05:16 UTC, Vinod K Chandran wrote:
[...]

I think your issue might be elsewhere because casting this should be fine and it should not complain about that in your given code.

At least you should be able to pass this to another function or even cast it.

Please show the full code and the full error which gives you the stacktrace of where it's called and from where.


I believe that in D *this* is a reference to the
object and not a pointer like in C++.
So I think that writing &this might be what you need?

Reply via email to