Explicitly passing `this` to methods
Tobias Pankrath via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 19 02:22:07 PDT 2014
On Thursday, 19 June 2014 at 09:16:07 UTC, Tomer Filiba wrote:
>
> I tried `F(inst, args)` or `inst.F(args)` but they don't
> work... what I need is the inverse of UFCS (e.g.,
> `func(inst,1,2,3) ==> inst.func(1,2,3)`)
>
> Is there any way to overcome this?
>
> Thanks,
> -tomer
Did you try: mixin("inst.f(args)");?
You would need to replace f with the correct function name, i
guess.
More information about the Digitalmars-d
mailing list