Exclusive Imports
Adam D. Ruppe
destructionator at gmail.com
Thu Jan 10 21:48:08 UTC 2019
On Thursday, 10 January 2019 at 21:37:01 UTC, . . wrote:
> Is there a way to import all symbols from a module, excluding
> one symbol?
No, but you can import both and then specify what you want the
local one to be with an alias along with the imports:
import std.stdio;
import std.file;
alias write = std.stdio.write; // specify what I mean...
void main() {
write("foo", "bar"); // would be ambiguous if not for the
alias
}
More information about the Digitalmars-d
mailing list