[Issue 5261] Uncompilable example for Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 14 18:10:53 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5261
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-01-14 18:09:00 PST ---
Also, I believe this:
catch (Object o) // catch any uncaught exceptions
{
MessageBoxA(null, cast(char *)o.toString(), "Error",
MB_OK | MB_ICONEXCLAMATION);
result = 0; // failed
}
should be replaced with:
catch (Throwable thr) // catch any uncaught exceptions
{
MessageBoxA(null, cast(char *)thr.toString(), "Error",
MB_OK | MB_ICONEXCLAMATION);
result = 0; // failed
}
since catching Objects should be illegal.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list