What are the worst parts of D?
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 25 10:45:57 PDT 2014
On 9/25/14, 10:26 AM, Atila Neves wrote:
> On Thursday, 25 September 2014 at 13:50:10 UTC, Jacob Carlborg wrote:
>> On 25/09/14 09:38, Atila Neves wrote:
>>
>>> Here's one: having to manually generate the custom main file for
>>> unittest builds. There's no current way (or at least there wasn't when I
>>> brought it up in the dub forum) to tell it to autogenerate a D file from
>>> a dub package and list it as a dependency of the unittest build.
>>
>> Hmm, I haven't used Dub to run unit tests. Although, DMD has a "-main"
>> flag that adds an empty main function.
>
> I don't want an empty main function. I want the main function and the
> file it's in to be generated by the build system.
Why would be the focus on the mechanism instead of the needed outcome?
-- Andrei
More information about the Digitalmars-d
mailing list