support UFCS with fully qualified function names
Timothee Cour
thelastmammoth at gmail.com
Mon May 20 15:48:19 PDT 2013
I'd like to be able to use UFCS with fully qualified function names.
A typical use case is to disambiguate , as in the following case:
import std.path;
import std.string;
void main(){
//Error: std.path.join()(const(char)[] p1, const(char)[] p2, const(char[
])[] more...) at ... conflicts with std.string.join at ...
auto a="".join("\n");
//what I'd like to have:
auto a="".(std.path.join)("\n");
}
note: the fact that std.path.join!().join is deprecated is irrelevant to
this discussion.
Any chance this could be supported?
benefits:
avoids breaking UFCS chains
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130520/5c749317/attachment.html>
More information about the Digitalmars-d-learn
mailing list