Automatic imports?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 3 16:43:14 PST 2017
On 2/3/2017 4:01 PM, Ali Çehreli wrote:
> void foo(std.datetime.Duration dur) {
> // ...
> }
>
> Can the compiler automatically import std.datetime for both the implementation
> above and the user? Or, too much beer at work on this Friday? :o)
How does the compiler know that "std" is supposed to be an import rather than a
misspelling of a previously declared "stc" ?
More information about the Digitalmars-d
mailing list