opDispatch not working

Mike Brown mikey.be at gmail.com
Sat Jun 5 15:40:37 UTC 2021


On Saturday, 5 June 2021 at 15:23:09 UTC, drug wrote:
> 05.06.2021 18:15, Mike Brown пишет:
>> [...]
>
> incomplete `cast` I would say. You did:
> ```D
> mixin("cast(T*)obj."~name)(vals);
> ```
> instead of
> ```D
> mixin("(cast(T*)obj)."~name)(vals);
> ```
>
> i.e. you try to call method `test` using a pointer to void and 
> then try to cast it to a pointer to T.

Thank you!!


More information about the Digitalmars-d-learn mailing list