ASTM 1.0 FTF Avatar
  1. OMG Issue

ASTM — Describe the behavior of ConditionalExpression

  • Key: ASTM-2
  • Legacy Issue Number: 12592
  • Status: closed  
  • Source: Hewlett-Packard ( Faron Dutton)
  • Summary:

    Describe the behavior of ConditionalExpression. Some languages only evaluate the condition and one result expression (i.e., short circuit evaluation) and others (e.g., Visual Basic) evaluate all three expressions. Specification of the expected behavior in GASTM promotes interoperability since translation of this behavior from one language to another will produce the expected result. Recommend adopting the short-circuit behavior since this appears to dominate

  • Reported: ASTM 1.0b1 — Sun, 27 Jul 2008 04:00 GMT
  • Disposition: Resolved — ASTM 1.0
  • Disposition Summary:

    Discussion:
    Refer to Discussion section of Issue# 12591.
    Recommend adopting the short-circuit behavior.
    Summary of changes:
    The change to specification will be in section# <3.2.1.4.6>, page# <98>, line# <3>. New description added will be along the lines "Default behavior is short-circuit semantics of evaluation for onTrueOperand or onFalseOperand".
    A change to specification will also be in section# <2.11.7>, page# <57>, line# <33>. By creating a reference to the semantics specified in the section 3.2.1.4.6 (described in previous para)
    Disposition: Resolved

  • Updated: Fri, 6 Mar 2015 20:57 GMT