Re: Save/load data to a file (JSON for phobos)

2008-11-21 Thread Niels
struct A { char[] sval = "test"; bool bval = true; int ival = 3; double dval = 4f/3; real rval = 8f/3; } should likely be: struct A { char[] sval = "test"; bool bval = true; int ival = 3; double dval = 4f/3f; // 4/3f should work to real rval = 8f/3f; }

Re: Save/load data to a file (JSON for phobos)

2008-11-18 Thread nobody
"Alan Knowles" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This should work, although I really need to rewrite some of it to use > streams. > http://www.akbkhome.com/svn/D_Stuff/json.d > > > > > nobody wrote: >> "Christopher Wright" <[EMAIL PROTECTED]> wrote in message >> news

Re: Save/load data to a file (JSON for phobos)

2008-11-17 Thread Alan Knowles
This should work, although I really need to rewrite some of it to use streams. http://www.akbkhome.com/svn/D_Stuff/json.d nobody wrote: "Christopher Wright" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] nobody wrote: I would like to be able to save and load a lot of data to/fr