Multiple selective imports on one line

earthfront via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 23 02:51:52 PST 2015


I'm using hackerpilot's excellent textadept plugin + DCD, Dfmt, 
and Dscanner.
Upon saving files, it produces suggestions, much like warnings 
from the compiler.

One suggestion is to use selective imports in local scopes. OK, 
I'll do that.

Now I'm left with a smattering of lines which are just selective 
imports from a single module:
void foo()
{
   import std.exception:enforce;
   import std.algorithm:array;
   import std.algorithm.iteration:filter;
   import std.functional:memoize;

   //..Work..
}

What is the proper way to combine these into one line?


More information about the Digitalmars-d-learn mailing list