Multiple selective imports on one line
earthfront via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 23 11:27:31 PST 2015
On Wednesday, 23 December 2015 at 11:12:22 UTC, ZombineDev wrote:
> Actually array() is from sts.array and correct way to use
> selective imports is:
> import std.exception : enforce;
> import std.array : array;
> import std.algorithm.iteration : filter;
> import std.functional : memoize;
>
> If you want to import several symbols from one module, you can
> list them after the column like so:
> import std.algorithm : any, find, sort /*, etc... */;
I hadn't compiled yet, so the array thing is indeed an error.
So there's no way to combine these _selective_ imports on a
single line, like I can with regular _module_ imports:
import std.exception, std.array, std.functional;
Correct?
More information about the Digitalmars-d-learn
mailing list