May 12, 2011 [dmd-beta] Samples broken | ||||
---|---|---|---|---|
| ||||
The first thing someone new would try is compiling the samples. This fails on 2.053beta. I saw a bugreport filed on this in january; <http://d.puremagic.com/issues/show_bug.cgi?id=5268> --- winsamp.d 2011-05-12 16:05:10 +0200 +++ winsamp_new.d 2011-05-12 16:06:00 +0200 @@ -146,9 +146,9 @@ result = doit(); // insert user code here } - catch (Object o) // catch any uncaught exceptions + catch (Exception ex) // catch any uncaught exceptions { - MessageBoxA(null, cast(char *) o.toString(), "Error", + MessageBoxA(null, cast(char *) ex.toString(), "Error", MB_OK | MB_ICONEXCLAMATION); result = 0; // failed } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110512/72b7478b/attachment.html> |
Copyright © 1999-2021 by the D Language Foundation