Naming conventions for functions in similar modules

Kagamin spam at here.lot
Wed Jun 22 02:10:23 PDT 2011


Andrej Mitrovic Wrote:

> Yeah I'm getting a little tired of naming clashes.
> import std.foo;
> import std.bar : doo;
> 
> import std.foo;
> import std.bar;
> alias std.bar.doo doo;
> 
> import std.foo;
> static import std.bar;  // woops, now we have to prepend std.bar
>                                 // for every single symbol from this module
> 
> And the 4th alternative is to only call conflicting symbols explicitly:
> 
> import std.foo;
> import std.bar;
> std.bar.doo();

Did you try renamed imports?


More information about the Digitalmars-d mailing list