[Issue 3603] Allow selective import syntax to import several modules from a package

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 18 18:48:26 UTC 2022


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

--- Comment #9 from John Hall <john.michael.hall at gmail.com> ---
Looks like this was closed again as Invalid. 

In addition to the previous argument that `import really;` brings in more
symbols than needed, it also only works if the user creates the public imports
that enable it to work. 

Another approach that I think would work well would be to expand the with
statement to work with modules. That implies that this:

with(std) import stdio, math;

would be equivalent with
import std.stdio, std.math;

It still doesn't have all the functionality discussed above, but I think it
addresses the original point.

--


More information about the Digitalmars-d-bugs mailing list