[Issue 2580] Documented WinMain for D2 is wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 30 18:53:06 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2580





------- Comment #5 from smjg at iname.com  2009-01-30 20:53 -------
(In reply to comment #4)
> That looks about right.  I had thought that people wouldn't want 
> unit tests run for dynamic libraries,

In which case they'll compile them without --unittest - problem solved.

> which is why that routine needs to be called manually.  If this is 
> incorrect then I can add it to Runtime.initialize() as well.  I'll 
> look into changing the docs.

You're right - Runtime.initialize() ought to call runModuleUnitTests().  People
using the currently correct WinMain will find that the unit tests run twice,
but at least they just have to remove the extra call in order to fix it.


-- 



More information about the Digitalmars-d-bugs mailing list