Re: New D import speedup concept!

2018-06-10 Thread DigitalDesigns via Digitalmars-d
another interesting syntax: import [] : std.algorithm, std.math; Does implicit importing on all arrays. int[] x; x.canFind(x[0]); // does implicit import for canFind! At some point we might even be able to get away from 90% of importing.

New D import speedup concept!

2018-06-10 Thread DigitalDesigns via Digitalmars-d
Suppose you have a large source file. You use functions from outside libraries that use other components not directly in their own library: module X import Foo : foo; auto x = foo(); module Foo; import F : I; I foo(); module F; interface I; class f : I; alias Q = I; f bar(f); now,