Git, the D package manager

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 2 06:06:44 PST 2015


On Monday, 2 February 2015 at 13:42:19 UTC, Vladimir Panteleev 
wrote:
> On Monday, 2 February 2015 at 13:25:57 UTC, Mathias LANG wrote:
>> To be more specific, dub won't let you compile a project with 
>> multiple definition of a function. How is that a liability ?
>
> You can't have more than one main() function.
>
> Some packages contain more than one entry point (programs / 
> executables).
>
> In my case, my library allows selecting an entry point based on 
> the nature of the program (console/GUI) and the platform. The 
> program only imports one of these. Vibe does something similar, 
> but it has only one entry point.
>

You can do this with dub. You selectively include or exclude 
files/directories on a per-configuration basis.

Overall - while you do have some valid complaints - you don't 
seems to know dub particularly well. Maybe you do, but it's not 
coming across.


More information about the Digitalmars-d mailing list