On 05/10/2015 11:09 PM, Adam D. Ruppe wrote:

The tip could probably use a rewrite in editing, but I'm out of time
again tonight and I hope I got the point across anyway. As someone who
really likes distributing single-file libraries when possible, the lazy
import has given me some cool interop things without compromising my
preferred distribution strategy.

Conditional importing is something I love in D and occasionally find indispensable. Unfortunately, dub's "always throw every file I can possibly find at the compiler" completely breaks it :( I am working on some PRs though which hopefully will get accepted and (I hope) should make it possible for a lib to essentially say "I get built using rdmd (or whatever) not dub's internal build system" which would fix the problem (or at least make it bypassable anyway).


Reply via email to