how to use opdot

2008-11-16 Thread Morusaka
Hi, I've read about opdot in D language spec operator overload section, but the little snippet of code provided isn't enough, for me, to figure out what it is supposed to do and how to use it or what it could be usefull for. Could you please help me to get the right way? Thank you, Luca.

Re: Large memory allocations

2008-11-16 Thread Kagamin
lol, quot damage! Janderson Wrote: > bearophile wrote: > > While allocating lot of memory for a little memory-hungry program, I have > > found results that I don't understand. So I have written the following test > > programs. Maybe someone can give me some information on the matter. > > I am u

Save/load data to a file

2008-11-16 Thread nobody
I would like to be able to save and load a lot of data to/from a file. (in D1) For example a struct like this: struct Fruit { int banana; double[][] orange; bool[] apple; } Practically all the examples that I've come across only deal with saving and loading text, so I'm having a har

Re: Save/load data to a file

2008-11-16 Thread Christopher Wright
nobody wrote: I would like to be able to save and load a lot of data to/from a file. (in D1) For example a struct like this: struct Fruit { int banana; double[][] orange; bool[] apple; } Practically all the examples that I've come across only deal with saving and loading text, so

Re: Save/load data to a file

2008-11-16 Thread bearophile
Christopher Wright: > XML is commonly used, and while I don't particularly like it, I find > it's still a reasonable choice in many circumstances. I don't know if a D library is available for Json file format, it has some advantages and some disadvantages over XML (). Bye, bearophile

Re: Save/load data to a file

2008-11-16 Thread Jarrett Billingsley
On Sun, Nov 16, 2008 at 3:03 PM, bearophile <[EMAIL PROTECTED]> wrote: > Christopher Wright: >> XML is commonly used, and while I don't particularly like it, I find >> it's still a reasonable choice in many circumstances. > > I don't know if a D library is available for Json file format, it has som

Re: Save/load data to a file

2008-11-16 Thread nobody
"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/from a file. >> (in D1) >> For example a struct like this: >> >> struct Fruit >> { >> int banana; >> double[][] orange; >> boo

Re: Save/load data to a file

2008-11-16 Thread Denis Koroskin
16.11.08 в 18:55 nobody в своём письме писал(а): I would like to be able to save and load a lot of data to/from a file. (in D1) For example a struct like this: struct Fruit { int banana; double[][] orange; bool[] apple; } Practically all the examples that I've come across only de

Re: Save/load data to a file

2008-11-16 Thread Bill Baxter
On Mon, Nov 17, 2008 at 5:53 AM, Denis Koroskin <[EMAIL PROTECTED]> wrote: > 16.11.08 в 18:55 nobody в своём письме писал(а): > >> I would like to be able to save and load a lot of data to/from a file. (in >> D1) >> For example a struct like this: >> >> struct Fruit >> { >>int banana; >>dou

Re: Save/load data to a file

2008-11-16 Thread Derek Parnell
On Sun, 16 Nov 2008 16:55:16 +0100, nobody wrote: > I would like to be able to save and load a lot of data to/from a file. (in > D1) > For example a struct like this: > > struct Fruit > { > int banana; > double[][] orange; > bool[] apple; > } > > Practically all the examples that I'

Re: Large memory allocations

2008-11-16 Thread BCS
Reply to bearophile, BCS: IIRC without special work, 32bit windows apps can't use more than 2GB of total address space regardless of how much ram you have. If you notice the numbers I have shown relative to D (single allocation or many smaller blocks) aren't much close to the 2 GB limit (I h