Dave,
I believe your rewording changes the functionality.
Consider the case where the two expressions are fixed size arrays of the same type.
The current wording performs an element-by-element comparison.
Where the two arrays have the same value in corresponding elements, that value is returned.
Only if corresponding elements have different values is an uninitialized value returned.
This is similar to how vector expressions are treated.
Where corresponding bits have the same value, that value is returned.
Only where corresponding bits have different values is x returned.
Your wording would return an uninitialized value for the entire expression if any pair of corresponding elements differed.
SVDB 1523 ___Yes _[DR] X__No
http://www.eda.org/svdb/view.php?id=1523
[DR] I suggest the following simplified wording for the whole paragraph
For nonintegral and aggregate expressions, if cond_predicate evaluates to an ambiguous value, then:
- if the logical equality of comparing the first and second expression's value is true, it returns that value.
- if the logical equality is not true, it returns the default uninitialized value for the type of the expressions.
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Sun Aug 28 04:18:07 2011
This archive was generated by hypermail 2.1.8 : Sun Aug 28 2011 - 04:18:20 PDT