Thread overview | |||||
---|---|---|---|---|---|
|
January 25, 2013 From package import syntax | ||||
---|---|---|---|---|
| ||||
This is the current syntax to import several modules from the std package: import std.stdio, std.algorithm, std.range, std.array; This is the syntax to import names from a module: import std.stdio: writeln, write; Currently this is not accepted, but do you like a syntax to import modules that is more consistent (the same as the one used to import names from a module)? import std: stdio, algorithm, range, array; Bye, bearophile |
January 25, 2013 Re: From package import syntax | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On 1/25/13, bearophile <bearophileHUGS@lycos.com> wrote: > Currently this is not accepted, but do you like a syntax to import modules that is more consistent (the same as the one used to import names from a module)? > > import std: stdio, algorithm, range, array; FWIW this was filed as an enhancement a few years ago: http://d.puremagic.com/issues/show_bug.cgi?id=3603 |
January 25, 2013 Re: From package import syntax | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Andrej Mitrovic:
> FWIW this was filed as an enhancement a few years ago:
> http://d.puremagic.com/issues/show_bug.cgi?id=3603
Thank you. Commented and voted.
Bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation