[Issue 17910] Can't have UFCS in aggregate types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 20 16:18:48 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #4 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Steven Schveighoffer from comment #3)
> make your extension methods global
This destroys encapsulation: what has no business at global scope shouldn't be
there.
> D usually frowns upon having the
> same code mean different things in different contexts.
This is not the case for UFCS.
--
More information about the Digitalmars-d-bugs
mailing list