If you need to use fully qualified name, you can use normal function call
syntax.

    auto a = std.path.join("", "\n");

Kenji Hara

2013/5/21 Timothee Cour <[email protected]>

> (I've re-posting here upon request from bearophile, who seems to like it
> :) )
>
> 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
>

Reply via email to