Skip to content

IN … SOLVE does not verify that the expression is well-formed. #234

Description

@Lartu

The LDPL compiler does not validate the format of IN x SOLVE ... statements.
This can lead to problems — for example, it is currently possible to write:

IN x SOLVE 7 6

Which inevitably results in compilation errors when the generated C++ code is compiled.

I believe some form of syntax checking should be implemented for IN x SOLVE ... statements. Or, at the very least, this limitation should be clearly mentioned in the docs so users are aware that malformed expressions can lead to C++ compilation errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is broken!

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions