Re: NDC and RAII

2004-09-26 Thread Christophe de Vienne
Christopher Smith wrote: On Sun, 2004-09-26 at 05:10, Christophe de Vienne wrote: The NDC constructor/desctructor already implement RAII. One can write : Now I feel silly. :-( Don't, I did the exact same thing a few month ago :-) Hmmm... It looks like the NDC constructor (and destructor

Re: NDC and RAII

2004-09-26 Thread Christopher Smith
On Sun, 2004-09-26 at 05:10, Christophe de Vienne wrote: > The NDC constructor/desctructor already implement RAII. One can write : Now I feel silly. :-( Hmmm... It looks like the NDC constructor (and destructor for that matter) aren't documented. Looks like that psyched me out. --Chris

Re: NDC and RAII

2004-09-26 Thread Christophe de Vienne
Christopher Smith wrote: So, I just started playing with log4cxx today. I've used log4cpp in the past, but it appears to have stagnated, so I thought I'd make a change. Anyway, one of the first things I noticed was that NDC's don't have a natural way to follow the RAII paradigm to ensure they g

NDC and RAII

2004-09-26 Thread Christopher Smith
So, I just started playing with log4cxx today. I've used log4cpp in the past, but it appears to have stagnated, so I thought I'd make a change. Anyway, one of the first things I noticed was that NDC's don't have a natural way to follow the RAII paradigm to ensure they get cleaned up. I made a s