Skip to content

missing implementation for static primus lisp semantics while loop #1623

Open
@ivg

Description

@ivg

When a while loop has statically known condition (i.e., when it should be unfolded into a static value) the loop side effects are not reified. Only the resulting value or nothing at all if there is no value. E.g.,

(while len
  (set x 0)
  (decr len))

should be reified to

x := 0
x := 0
...

len times for statically known len, but it is turned into nothing.

Note, that for an expression that construct pure value it works correctly (though any side effects are not observable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions