what is good practice for generating verbose output? currently, i have a function
bool verbose; int setVerbose(bool v) { errormsg = \"\"; verbose = v;
You can wrap your functionality in a class that supports the << operator which allows you to do something like
class Trace { public: enum { Enable, Disable } state; // ... operator<<(...) };
Then you can do something like
trace << Trace::Enable; trace << "deleting interp"