new discovery: import only if available
Adam D. Ruppe
destructionator at gmail.com
Wed Jun 19 12:42:51 PDT 2013
On Wednesday, 19 June 2013 at 19:20:15 UTC, Sean Kelly wrote:
> rdmd?
That would pull it in here. What I mean is if:
module a: "weakly" imports module c
module b: imports module c
Module c is available, but:
dmd a.d c.d
explicitly uses module c, so it is pulled.
dmd a.d
only uses module a, because module c isn't used elsewhere and
isn't explicitly pulled in.
dmd a.d b.d
does use module c, because it is required anyway by module b.
More information about the Digitalmars-d
mailing list