Re: Bug or feature? std.c.stdlib.exit() breaks RAII

2011-12-29 Thread AaronP
On 12/29/2011 12:43 PM, Ashish Myles wrote: On Thu, Dec 29, 2011 at 1:26 PM, Andrej Mitrovic wrote: Probably the easiest thing to do is to throw a custom exception and catch it somewhere in main() to return your status code. Unlike exit(), throwing will take care of RAII stuff. Thanks, Andre

Re: A GUI library to begin with

2012-02-08 Thread AaronP
On 02/07/2012 09:55 PM, Mr. Anonymous wrote: Hello, I want to start playing with D, and I'm looking at a GUI library to begin with. From what I see here: http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries I have four choices: GtkD, DWT, DFL, DGui. Has anyone tried these? Any suggestions? What

Re: A GUI library to begin with

2012-02-08 Thread AaronP
On 02/08/2012 09:24 AM, Jesse Phillips wrote: I think GtkD is stated to suck because it isn't native to Windows or Mac, both in look and availability. Hmm, perhaps. Incidentally, it looks great on Linux! :P

std.json

2012-03-25 Thread AaronP
Could I get a "hello, world" example of parsing json? The docs look simple enough, but I could still use an example.

Re: std.json

2012-03-25 Thread AaronP
3.1415 } } EOS"); writeln(json.object["key"].object["subkey1"].str); writeln(json.object["key"].object["subkey2"].array[1].integer); writeln(json.object["key"].object["subkey3"].type == JSON_TYPE.FLOAT); } On Sunday, 25 March 2012 at 15:2