Error: need this for method of type
Dennis
dkorpel at gmail.com
Wed Oct 23 11:53:01 UTC 2019
On Wednesday, 23 October 2019 at 11:48:29 UTC, Dennis wrote:
> You can change `method(1)` into `x.method(1)` and it should
> work.
Wait, but that's only because the local alias and member function
have the same name 'method'.
I think you just have to keep the method name as a string instead
of an alias and use ` __traits(getMember, x, member)(3);` the
moment you want to call it.
More information about the Digitalmars-d-learn
mailing list