Re: how to use curl to download a file

2011-11-01 Thread Mike Parker
On 11/2/2011 3:20 AM, Frédéric Galusik wrote: Hi, As the curl documentation is a little bit ...wow. http://www.digitalmars.com/d/2.0/phobos/etc_c_curl.html Do someone have a simple example on how to download a simple file ? Thank you. ++ I don't think we should expect detailed documentation

Re: std.container & ranges

2011-11-01 Thread Max Wolter
On 10/30/2011 9:28 PM, Jonathan M Davis wrote: On Sunday, October 30, 2011 20:53:02 Max Wolter wrote: Hello there. Thank you very much for the explanation. However, while I really liked the concept of ranges in Andrei's book and a lot of it seems intuitive and faster than using iterators, I ca

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Graham Fawcett
On Tue, 01 Nov 2011 12:18:02 -0700, Jonathan M Davis wrote: > On Tuesday, November 01, 2011 18:23:52 Graham Fawcett wrote: >> On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote: >> > Steven Schveighoffer Wrote: >> >> Oh I remember doing that too :) Don't feel bad, everyone does this >> >> at least

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Jonathan M Davis
On Tuesday, November 01, 2011 18:23:52 Graham Fawcett wrote: > On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote: > > Steven Schveighoffer Wrote: > >> Oh I remember doing that too :) Don't feel bad, everyone does this at > >> least once. I hate that stupid test builtin, nobody ever uses it > >> a

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Frédéric Galusik
Le Tue, 01 Nov 2011 18:23:52 +, Graham Fawcett a écrit : > On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote: > >> Steven Schveighoffer Wrote: >> >>> Oh I remember doing that too :) Don't feel bad, everyone does this at >>> least once. I hate that stupid test builtin, nobody ever uses it >

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Graham Fawcett
On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote: > Steven Schveighoffer Wrote: > >> Oh I remember doing that too :) Don't feel bad, everyone does this at >> least once. I hate that stupid test builtin, nobody ever uses it >> anymore. >> >> Note, it's not a command line tool, it's a shell bui

how to use curl to download a file

2011-11-01 Thread Frédéric Galusik
Hi, As the curl documentation is a little bit ...wow. http://www.digitalmars.com/d/2.0/phobos/etc_c_curl.html Do someone have a simple example on how to download a simple file ? Thank you. ++

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Jude Young
Ew. speak no blasphemy... On Tue, Nov 1, 2011 at 6:27 AM, Kagamin wrote: > Steven Schveighoffer Wrote: > > > Oh I remember doing that too :) Don't feel bad, everyone does this at > > least once. I hate that stupid test builtin, nobody ever uses it > anymore. > > > > Note, it's not a command l

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Jonathan M Davis
On Tuesday, November 01, 2011 04:27 Kagamin wrote: > Steven Schveighoffer Wrote: > > Oh I remember doing that too :) Don't feel bad, everyone does this at > > least once. I hate that stupid test builtin, nobody ever uses it > > anymore. > > > > Note, it's not a command line tool, it's a shell buil

Re: std.container & ranges

2011-11-01 Thread Kagamin
Steven Schveighoffer Wrote: > ahem, using dcollections: > > foreach(ref doRemove, cell; &organism.purge) > doRemove = cell.x == x && cell.y == y; > > complexity: O(n) may be a generic iteration handler would be more useful? foreach(ref handler, cell; &organism.each) if(cell.x == x && c

Re: [beginner] Why nothing is printed to stdout ?

2011-11-01 Thread Kagamin
Steven Schveighoffer Wrote: > Oh I remember doing that too :) Don't feel bad, everyone does this at > least once. I hate that stupid test builtin, nobody ever uses it anymore. > > Note, it's not a command line tool, it's a shell builtin, which is why it > overrides anything in your search p

Re: Can't free memory on exiting?

2011-11-01 Thread Denis Shelomovskij
01.11.2011 10:27, breezes пишет: Thanks Andrej. That bug says that you can not alloc memory during GC. However i don't alloc but free memory in ~this. But anyway, as you said, I should use malloc/free in core.stdc.stdlib to manage memory manually. I modified the code to use that malloc/free, and

Re: Can't free memory on exiting?

2011-11-01 Thread breezes
Thanks Andrej. That bug says that you can not alloc memory during GC. However i don't alloc but free memory in ~this. But anyway, as you said, I should use malloc/free in core.stdc.stdlib to manage memory manually. I modified the code to use that malloc/free, and it works without crashing. Howeve