Re: What's the right way to test if regex.match() hits or not?

2009-06-02 Thread Russell Lewis
Jarrett Billingsley wrote: On Tue, Jun 2, 2009 at 12:16 AM, Russell Lewis webmas...@villagersonline.com wrote: P.S. Does anybody know why dmd complains cannot evaluate at compile time when I set those regex objects to static invariant so I'm not rebuilding them with every pass? Because it

Re: first ddata load attempt

2009-06-02 Thread Saaa
Looks interesting, but unfortunately it's still useless to me since it doesn't seem to support arrays of varying depth, nor boolean arrays I believe. ps. Isn't this throw statement unreachable? (throw new Exception(Identifier not found) erm.. yes.. should have been commented out. pps.

Re: What's the right way to test if regex.match() hits or not?

2009-06-02 Thread Russell Lewis
Jarrett Billingsley wrote: On Tue, Jun 2, 2009 at 11:47 AM, Russell Lewis webmas...@villagersonline.com wrote: Of course! But then, the code is harder to read. I'll bite the bullet and move it above the loop, but it's ugly. And yeah, I know about CTFI and the issues there...I just thought

Garbage collection in D

2009-06-02 Thread Diwaker Gupta
I've just started to play around with D, and I'm hoping someone can clarify this. I wrote a very simple program that just allocates lots of objects, in order to benchmark the garbage collector in D. For comparison, I wrote the programs in C++, Java and D: C++: http://gist.github.com/122708

Re: Garbage collection in D

2009-06-02 Thread Tim Matthews
Diwaker Gupta wrote: I've just started to play around with D, and I'm hoping someone can clarify this. I wrote a very simple program that just allocates lots of objects, in order to benchmark the garbage collector in D. For comparison, I wrote the programs in C++, Java and D: C++: