https://issues.dlang.org/show_bug.cgi?id=17910
Steven Schveighoffer changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #2 from anonymous4 ---
This destroys encapsulation: what has no business at global scope shouldn't be
there.
--
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #3 from Steven Schveighoffer ---
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
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #4 from anonymous4 ---
(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
> sa
https://issues.dlang.org/show_bug.cgi?id=17910
--- Comment #5 from Steven Schveighoffer ---
(In reply to anonymous4 from comment #4)
> (In reply to Steven Schveighoffer from comment #3)
> > make your extension methods global
>
> This destroys encapsulation: what has no business at global scope s