[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

silly use of data1



PureBytes Links

Trading Reference Links

Inputs: Price(NumericSeries);
Variables: Sum(0), Counter(0);

Neither of these two verifies

Sum = Sum + Counter of Data3;
Sum = Sum + (Counter of Data3);

But this does

Sum = (Sum + Price) of Data3;

I'm not sure this use of Data3 makes sense. I think the caller would normally apply "of DataN" to the Price input. What's stranger still is that this use is also valid

Sum = (Sum + Counter) of Data3;

Sum and Counter clearly do not depend on Data3 but the code verifies in PowerEditor!

What do you guys think?

	Thanks, Joel

---
http://tinyco.de
Mac, C++, OCaml