Menu

#3 Rendering parameter defaults in simulation config incorrect

open
nobody
5
2008-05-01
2008-05-01
No

The way the default parameter values are represented in the simulation config dialog is incorrect and causes problems.

EXAMPLE

Assume the top-level network is defined as follows:

network N (param = "some string") ...

After selecting this model, the simulation config dialog correctly displays the parameter param, but as its default value it uses
some string
(i.e. the actual string, without quotes). On instantiation, this would lead to
some string
being parsed as an expression, which in this case fails. Instead, the parameter should be
"some string"
which, when parsed as an expression would yield a string literal, as was intended in the parameter declaration.

Discussion


Log in to post a comment.