default values of keyword parameters are not checked to be in the allowed set

Issue #2392 resolved
Roland Haas created an issue

Currently neither the CST nor the runtime code stops a simulation if the default value of a parameter is not in the allowed set of values. The runtime code actually detects this state then outputs an (invisible since the info level is not yet available) warning about which parameter is affected, then another one to the effect of “but continuing anyway”.

It seems better if default values were restricted to be in the allowed range, ideally both at compile time and at runtime (in case compile time checks miss something).

Comments (10)

  1. Roland Haas reporter

    Has there been progress on this? The PR ends with a comment (by me) saying that keyword parameters are not checked to be in range and show the same issue so the pull request is incomplete. Similarly most likely for strings.

  2. Log in to comment