Skip to content

Order of operations in SET #28

@mzuenni

Description

@mzuenni

In which order are the arguments of SET evaluated, if we have something like this: SET(a=2,b=a+a)?

  1. first all right hand sides are evaluated and then the assigned, i.e., like this python code: a,b=2,a+a
  2. from left to right like this python code: a=2; b=a+a

It seems like the current implementation behaves like 2. even though 1. would be more natural. Checked with this snipped:

SET(a=1)
SET(a=2,b=a+a)
ASSERT(b==2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions