On Mon, Aug 26, 2002 at 09:41:22AM +0200, Juergen Vigna wrote: > >freezeUndo() > >{ > > if (++undo_frozen_count == 1) > > undo_frozen = true; > >} > > > >unfreezeUndo() > >}{ > > if (--undo_frozen_count == 0) > > undo_frozen = false; > >} > > > > IMO this counting is error prone.
Yes, it catches errors ;) > Anyway we could just put the whole > stuff into a class with private static members (does this exist?) and > instead of using the external bool use a function, but at the end IMO > it's just the same. Well the above removes a global bool with no other changes ... regards john -- "When your name is Winner, that's it. You don't need a nickname." - Loser Lane