This Week in D 16: microcontroller, andoid, std.allocator, lazy import trick

Nick Sabalausky via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon May 11 08:30:29 PDT 2015


On 05/10/2015 11:09 PM, Adam D. Ruppe wrote:
> http://arsdnet.net/this-week-in-d/may-10.html
> https://twitter.com/adamdruppe/status/597598994227924992
>
> 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).

https://github.com/D-Programming-Language/dub/issues/562
https://github.com/Abscissa/dub/commits/more-details



More information about the Digitalmars-d-announce mailing list