nothrow in druntime win32 C bindings

Stewart Gordon smjg_1998 at yahoo.com
Thu Dec 27 12:55:47 PST 2012


On 26/12/2012 22:47, Andrej Mitrovic wrote:
> On 12/26/12, Walter Bright <newshound2 at digitalmars.com> wrote:
>> The operating system calls WNDPROC directly. That means that you (the user)
>> need to set up / tear down the D runtime yourself
>
> But we already do this in WinMain, which is called first:
<snip>

But on top of what Walter has said:

- Is it even guaranteed that the WNDPROC will be called only in the 
program's own call stack?

- Just looking at how SendMessage works across threads, can we rely on 
it to properly notify the calling thread that the message has been 
processed if the WNDPROC throws?

- Chances are you'll want to avoid just letting exceptions abort the 
entire program.

Stewart.


More information about the Digitalmars-d mailing list