[Issue 2580] Documented WinMain for D2 is wrong

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2580

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.023   |D2

--


Re: [Issue 2580] Documented WinMain for D2 is wrong

2009-04-02 Thread Sean Kelly

d-bugm...@puremagic.com wrote:

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

--- Comment #6 from s...@iname.com  2009-04-01 20:18 ---
Sean, where are you at with this at the moment?


I forgot about this ticket until the release went out and I was looking 
through bugzilla for stuff to close.  It will be fixed in the next release.


[Issue 2580] Documented WinMain for D2 is wrong

2009-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2580


s...@invisibleduck.org changed:

   What|Removed |Added

 AssignedTo|bugzi...@digitalmars.com|s...@invisibleduck.org




--- Comment #4 from s...@invisibleduck.org  2009-01-30 20:01 ---
That looks about right.  I had thought that people wouldn't want unit tests run
for dynamic libraries, 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.


-- 



[Issue 2580] Documented WinMain for D2 is wrong

2009-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2580





--- Comment #5 from s...@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.


-- 



[Issue 2580] Documented WinMain for D2 is wrong

2009-01-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2580





--- Comment #3 from s...@iname.com  2009-01-24 06:51 ---
Correction: Runtime.initialize calls the proper startup code, and
Runtime.terminate calls the proper shutdown code.


--