Ambiguous Expression

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vladimir

    #16
    Re: Ambiguous Expression


    Pete Becker wrote:[color=blue]
    > by the standard. It can't blow away the sequence point after the[/color]
    first[color=blue]
    > call (in the generated code, not the fist in the source code) to[/color]
    func.


    IMHO there is no sequence point between arg1 and arg2 evaulations in a
    call(arg1, arg2);

    is it?


    --
    Vladimir

    Comment

    • Victor Bazarov

      #17
      Re: Ambiguous Expression

      Vladimir wrote:[color=blue]
      > Pete Becker wrote:
      >[color=green]
      >>by the standard. It can't blow away the sequence point after the[/color]
      >
      > first
      >[color=green]
      >>call (in the generated code, not the fist in the source code) to[/color]
      >
      > func.
      >
      >
      > IMHO there is no sequence point between arg1 and arg2 evaulations in a
      > call(arg1, arg2);
      >
      > is it?[/color]

      It depends on what 'arg1' and 'arg2' are. If they are function calls,
      there is _always_ a sequence point between them (before the second call,
      which is not necessarily to evaluate 'arg2'). That's what Pete said.

      And it has nothing to do with opinions. It's specified by the Standard.

      V

      Comment

      Working...