Compiler bug in Build 1966 - page 2

To add comments, please log in or register
Amir Yacoby
1305
Amir Yacoby  

It's a common practice, very useful in many terms. For instance, allows to write things like calling a function only if parameter has value and so on..

bool ModifyStopLoss(const double price=0)
  {
    if(price>0&&!ModifySL(price))   
        return false;
    return true;
  }
Flavio Jarabeck
4292
Flavio Jarabeck  

Regarding the && logic, this on C++ people call Logic Short-Circuiting where the Bollean AND will not evaluate the second member when the first evalueted to false...


;)

12
To add comments, please log in or register