On Thursday, 17 August 2017 at 11:40:11 UTC, rjframe wrote:
It doesn't quite work; it provides access to all names in the
module, and
write/writeln is introduced into the global namespace; e.g.,
it's
interpreted as
`import io = std.stdio; import std.stdio : write, writeln;`
https://issues.dlang.org/show_bug.cgi?id=17756
Yeah, I wouldn't have expected the following code to compile
without error
import io = std.stdio : writeln;
void main()
{
io.write("foo"); //expect error here, but none
writeln("blah"); //expect error here, but none
io.writeln("bar"); //no error
}