On Tue, 21 May 2013 03:09:15 -0400, bearophile <[email protected]> wrote:

Kenji Hara:

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

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

I'm sure Timothee is aware of your solution, but it breaks UFCS chains or doesn't allow them.

So if you want to write:

foo.bar.baz.spam.red;

But you have to fully qualify baz, currently you have to write:

spam(std.somemodule.baz(foo.bar)).red;

Or more naturally:

auto aux = std.somemodule.baz(foo.bar);
aux.spam.red;

With Timothee idea you write something like:

foo.bar.(std.somemodule.baz).spam.red;

This looks like a small improvement.

(Elsewhere I have even suggested to optionally use typeof and assert with a dot-leading syntax, like sizeof).

Is it just me, or is this not trivially solved with import aliases?

-Steve

Reply via email to