Am Wed, 07 Aug 2013 03:33:28 +0200
schrieb "Mike Parker" <>:

> > Maybe modifying glfwSetWindowCloseCallback and similar 
> > functions to only accept nothrow functions is a good idea?
> I'm not sure what you mean. That's a C function, which means it 
> doesn't have any concept of D's nothrow. And, actually, the 
> callbacks should be declared as nothrow anyway. Like:

He meant declaring glfwSetWindowCloseCallback like this:
alias extern(C) nothrow void function() callback;
extern(C) void glfwSetWindowCloseCallback(callback cb);
There's no difference in the generated code, but this way the compiler
will complain if you pass a non-nothrow function to

Reply via email to