What is the correct way to forward method calls to the struct field?

monnoroch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 21 11:21:53 PDT 2014


On Saturday, 21 June 2014 at 18:16:17 UTC, monnoroch wrote:
> Actyaly, last variant didn't work either: i was testing it
> inside S like "ifc.foo(1)", so UFCS kiked in, not alias this.

Oh, my bad, "alias impl this;" actually did work. But the first
argument problem still holds.


More information about the Digitalmars-d-learn mailing list