Skip to content

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

@Lartu

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.

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