Thread overview
RE: simpledisplay
Dec 11, 2012
Andrej Mitrovic
Dec 11, 2012
Adam D. Ruppe
Dec 11, 2012
Andrej Mitrovic
December 11, 2012
http://www.digitalmars.com/d/archives/digitalmars/D/simple_display_from_GUI_library_for_D_134213.html#N134213

http://arsdnet.net/dcode/simpledisplay.d http://arsdnet.net/dcode/simpledisplay_test2.d

Note that these can no longer be used on win32 because the entire core.sys.windows.windows has been marked as nothrow. I've tried changing simpledisplay's functions to all be nothrow, but even with that I can't compile that test sample because it uses delegates which call functions that can throw (e.g. writeln). Nothrow propagates *everywhere*, it's extremely hard to write code which is nothrow-compatible..

IOW, what was the point in marking everything as nothrow (https://github.com/D-Programming-Language/druntime/pull/225)? It just breaks code and adds zero benefit..
December 11, 2012
On Tuesday, 11 December 2012 at 11:36:16 UTC, Andrej Mitrovic wrote:
> Note that these can no longer be used on win32 because the entire


There's a version on my github that works on dmd 2.060

https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff

The newer version in there also requires color.d. The fix was a pull request, it just set the WndProc nothrow.
December 11, 2012
On 12/11/12, Adam D. Ruppe <destructionator@gmail.com> wrote:
> There's a version on my github that works on dmd 2.060 https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff

Cool! Thanks.