[Issue 17910] Can't have UFCS in aggregate types

2017-10-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17910 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17910] Can't have UFCS in aggregate types

2017-10-19 Thread d-bugmail--- via Digitalmars-d-bugs
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. --

[Issue 17910] Can't have UFCS in aggregate types

2017-10-19 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 17910] Can't have UFCS in aggregate types

2017-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 17910] Can't have UFCS in aggregate types

2017-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
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