Re: Synchronized const methods

2010-06-12 Thread Jérôme M. Berger
Daniel Keep wrote: immutable means no one can modify this. const means someone might be able to modify this, but not you can't. So? Basically, what the OP said, is that we need readers-writer locks [1]. A const synchronized method would use the read lock (and therefore

Re: Synchronized const methods

2010-06-12 Thread Tomek Sowiński
Dnia 12-06-2010 o 09:28:58 Jérôme M. Berger jeber...@free.fr napisał(a): Daniel Keep wrote: immutable means no one can modify this. const means someone might be able to modify this, but not you can't. So? Basically, what the OP said, is that we need readers-writer locks

Re: using std.process

2010-06-12 Thread Philippe Sigaud
Graham Try giving an absolute path to 'mkdir'. I'm fairly sure that the exec* family does not use the PATH environment. I tried the different versions and used execvp precisely because it's supposed to provide the path. But I admit I never tried giving it an entire path. BCS: That's what

Forwarding constructor arguments to super

2010-06-12 Thread pillsy
Is there a good way to forward constructor arguments to a superclass constructor? I.e., if I have something like this class Foo { int _x; this (int x) { _x = x; } } class Bar : Foo {} I'd like to able to have this just work: auto bar = new Bar(3); However, doing this means that DMD