On 18/09/11 7:59 PM, Walter Bright wrote:
On 9/18/2011 2:49 AM, Peter Alexander wrote:
Unity builds help a lot with link time.

dmd does something similar if you build an executable by putting
multiple modules on the command line. It will create one big object
file, instead of one per module.

This is good.

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?

Reply via email to