Would You Bet $100,000,000 on D?

Walter Bright newshound2 at digitalmars.com
Sun Sep 18 16:43:00 PDT 2011


On 9/18/2011 3:33 PM, Peter Alexander wrote:
> Does dmd also cache commonly imported modules in this case?
>
> e.g.
>
> // foo.d
> /+ lots of code +/
>
> // bar.d
> import foo;
>
> // baz.d
> import foo;
>
> dmd foo.d bar.d baz.d
>
> How many times is foo parsed? Once?

Once.


More information about the Digitalmars-d mailing list