On 04/09/2013 06:49 PM, Jacob Carlborg wrote:
On 2013-04-09 17:51, Martin Nowak wrote:
I think the best way is to sythesize a main function in the executable.
Something like this.
extern(C) int main(int argc, char** argv)
{
rt_init(argc, argv);
runMain(&_Dmain);
return rt_term();
}
By "sythesize", you mean not defined in druntime?
Yes as Rainer pointed out the current mechanism doesn't work well on
Windows. Given the simplicity of the needed C function we can simply
generate it inside the compiler.