nothrow in druntime win32 C bindings

Walter Bright newshound2 at digitalmars.com
Fri Dec 28 11:00:17 PST 2012


On 12/28/2012 5:29 AM, Phil Lavoie wrote:
> So, if I got this right, doing this is not ideal:
> extern( Windows ) nothrow LRESULT WndProc( HWND hwnd, UINT message, WPARAM
> wParam, LPARAM lParam ) {
> try {
> ...
> } catch( Exception e ) { ... }
> }
>
> And should be changed to :
> catch( Throwable t ) { ... }
> ?

Yes.



More information about the Digitalmars-d mailing list