Well, sounds like I mistakenly thanked another fella for Cédric.
Anyway, nothing changes my intention, you guys spend some time on
someone's question and that's for sure appreciated.

And you Cédric are not an exception especially with your fast and
thorough reply. One last word with you, when I used to attend the
college I remember that I wrote an expression parser for evaluating
simple mathematical expressions such as 2 + 3 * 4 - 5 etc.

Back then, parenthesis not only changed the precedence but also the
order of evaluation. I mean writing an expression like 2 * (30 - 5)
forced my implementation (stack-based) to first evaluate 30 - 5 to 25
followed by a multiplication which yielded 50. On the other hand,
without parentheses first 2 * 30 got evaluated to 60 followed by a
subtraction which in turn yielded 55. Can you put all these together
and make it even clearer for me? I mean, does this challenge your last
sentence which goes: Simply put, precedence has nothing to do with
order of evaluation?

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to