Fw: Rosetta Code seeks programming examples

naryl cy at ngs.ru
Fri Jan 25 09:20:49 PST 2008


badmadevil Wrote:
> I don't know who coded the D version of Arithmetic Evaluator.
> I think it has bug.

Looks like the current solution does something wrong with precedence and calculates addition and subtraction right to left... and then again left to right.

"(3+50)*7-9-1" is calculated like (3+50)*7-(9-1)-1



More information about the Digitalmars-d mailing list