Naming conventions for functions in similar modules

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Jun 23 09:17:55 PDT 2011


On 6/23/11, SimonM <user at example.net> wrote:
> Oh! Forgot about this:
> import ascii = std.ascii;

This doesn't help with std.string, because you'll inadvertently hide
the string type:

import string = std.string;  // woops

void main()
{
    string x;
}

Error: module std.string is used as a type


More information about the Digitalmars-d mailing list