Suppose there is a destructor for an object as:
anObject::~anObject()
{
_functionCalledfromDestructor=1; //this sets the flag = 1
functionCall(); //this function does something different than usual
//on seeing the flag
}
My question:
Is this style/method of coding in the destructor a good practice?