DIP10005: Dependency-Carrying Declarations is now available for community feedback

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 19 19:41:42 PST 2016


On 12/17/2016 10:39 AM, Jacob Carlborg wrote:
> On 2016-12-13 23:33, Andrei Alexandrescu wrote:
>> Destroy.
>>
>> https://github.com/dlang/DIPs/pull/51/files
>
> A couple of questions.
>
> 1. The text says:
>
> "void process(File input) import (std.stdio);
>
> With this syntax, the import is executed only if the declared name is
> actually looked up."
>
> Is "declared name" referring to the function "process"? To me it sounds
> like it could be misinterpreted to refer to "File", which would indicate
> the import is lazily executed.
[snip]

Thanks, made a change. -- Andrei


More information about the Digitalmars-d mailing list