Compile / runtime differences for using import statements

Walter Bright newshound2 at digitalmars.com
Sat Apr 29 04:04:49 UTC 2023


On 4/20/2023 5:15 PM, Adam D Ruppe wrote:
> The selective imports work as if you 
> wrote:
> 
> static import std.stdio;
> alias writeln = std.stdio.writeln;

That's because internally the compiler rewrites it as an alias!



More information about the Digitalmars-d mailing list