[Issue 17910] Can't have UFCS in aggregate types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 19 15:26:22 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
You have a choice, make your extension methods global, or don't use UFCS to
call them:
clear(b);
This is a perfectly reasonable tradeoff. D usually frowns upon having the same
code mean different things in different contexts. UFCS already pushes that
envelope, we don't need to push it more.
--
More information about the Digitalmars-d-bugs
mailing list