Import modules too verbose in some cases
Rene Zwanenburg via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 10 04:07:18 PDT 2017
On Wednesday, 9 August 2017 at 23:57:19 UTC, Johnson Jones wrote:
> Sometimes one doesn't want to import either the whole module
> nor specify a single function to import. It seems that
> basically D has all the info to import the function implicitly
> because it usually gives a nice error message tells us which
> module to import for the function.
It doesn't have that information available, and that's unlikely
to change due to the compilation model. Rather, a few very common
cases have been hardcoded in the compiler:
https://github.com/dlang/dmd/blob/4d86fcba2fd2ef86cc85738cd2ac2b059dbb5800/src/ddmd/imphint.d
More information about the Digitalmars-d
mailing list