A
Aaron Lawrence
Hi all.
Suppose I have
bool CFoo::AMethod()
{
// do lots of side effects...
...
return false; // the only return
}
and later I have:
bool result = AMethod();
Is it OK for the compiler to skip the call to AMethod and just assign
the value false to result? Even if all optimisations are off?
Thanks
Aaron
Suppose I have
bool CFoo::AMethod()
{
// do lots of side effects...
...
return false; // the only return
}
and later I have:
bool result = AMethod();
Is it OK for the compiler to skip the call to AMethod and just assign
the value false to result? Even if all optimisations are off?
Thanks
Aaron