From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: Wed, 15 Sep 2004 09:52:15 +0100
In article <MoOdnel-ku5oE9rcRVnfirstname.lastname@example.org>, Gary Labowitz
>What ever happened to common sense? The table is supposed to help apply
But this is an example of why precedence tables are only an
approximation, you have to know and understand the grammar.
It is easy for even the world's best to get caught. The very first
printing of The C++ Programming Language 3rd ed. had a misleading in its
precedence table. The conditional operator (? :) cannot be placed
correctly in such a table because of conflict with the precedence of
The upshot is that any precedence table for C++ operators has to be
treated as a guide rather than as definitive.
-- Francis Glassborow ACCU Author of 'You Can Do It!' see http://www.spellen.org/youcandoit For project ideas and contributions: http://www.spellen.org/youcandoit/projects