https://issues.dlang.org/show_bug.cgi?id=10378

--- Comment #34 from Steven Schveighoffer <[email protected]> ---
What I mean is, really Timon's code should be:

string readAndLog(string filename){
    import std.file : readText;
    auto text=readText(filename);
    write(filename," read successfully!\n");
    return text;
}

i.e. only use scoped imports with a qualified list of which symbols you will
use, or use a renamed import.

This prevents any hijacking.

--

Reply via email to