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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 23 08:55:05 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=3603


Nick Treleaven <ntrel-public at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntrel-public at yahoo.co.uk


--- Comment #2 from Nick Treleaven <ntrel-public at yahoo.co.uk> 2013-01-23 08:55:04 PST ---
> import really.very.deeply.nested.package: module1, module2, module3;

I think this is the way to go, and is very commonly useful.

> import really.very.deeply.nested.package { module1, module2, module3 };

I don't think it's worth allowing both selective modules and selective symbols
in the same statement. Importing selective symbols from a module can just use a
separate statement, and it's less common than full module imports anyway.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list