opDispatch and UFCS
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 11 17:04:43 PDT 2016
On Wednesday, 11 May 2016 at 23:46:48 UTC, John Colvin wrote:
> Bug? Or am I misunderstanding how these two features are
> supposed to interact?
I'm not sure what you actually expected there, but I'd note that
in general, opDispatch will always be preferred over UFCS, just
like any other member access, so if you have an unrestricted
opDispatch, you basically disable ufcs on the type.
More information about the Digitalmars-d-learn
mailing list