Windows startup docs are out of date

Adam D. Ruppe destructionator at gmail.com
Wed Jan 8 05:28:39 PST 2014


On Wednesday, 8 January 2014 at 12:50:54 UTC, Jacob Carlborg 
wrote:
> It's Windows that is lame. Every other platform uses a normal 
> main function.

eh they're really in the same boat. Declaring your own WinMain is 
kinda like declaring your own _start symbol on linux. It skips 
the runtime's main() function and you're more on your own.

Both the C and the D runtimes implement their own entry point 
which calls into your program's main and you can use these 
consistently across platforms.


More information about the Digitalmars-d mailing list