You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the isUndefined function as defined in the cd++ manual
Signature: isUndefined : Real → Bool
Description: Returns True if the value is undefined, else returns False.
I get a parsing error for several cases. The only working one is for a concrete value (isUndefined(4))
I attached the ma file with the different cases (undefBugTest.ma). Each one can be tested individually by commenting the others.
The cases are:
isUndefined(4) and % ok
not isUndefined(4) and % ok
isUndefined( $var1 ) and % not ok: Parsing error syntax error, unexpected ')', expecting '!'
isUndefined( $var2 ) and % not ok: Parsing error syntax error, unexpected ')', expecting '!'
isUndefined( $var2 ! 0) and % ok: But dont know why. I Asume that takes $var2 as a tuple
isUndefined( $var2 ! 4) and % ok: But dont know why. I Asume that takes $var2 as a tuple
isUndefined(?) and % not ok: Parsing error syntax error, unexpected UNDEF
isUndefined( [?]!0 ) and % ok: I asume that what happens is that isUndefined expects a tuple. But don't work with plain undef value
isUndefined( (0,0)~port1 ) % not ok: Parsing error syntax error, unexpected ')', expecting '!'
For the execution:
TIME=00:00:10:000
SIMU_ARGS="$SIMU_ARGS -t$TIME"
Bug can be reproduced in latest release using this sample model.
Suggested workaround: until this is addressed, please use the alternative syntax as shown in the model (i.e., (0,0)~value = ? instead of isUndefined((0,0)~value))
When using the isUndefined function as defined in the cd++ manual
Signature: isUndefined : Real → Bool
Description: Returns True if the value is undefined, else returns False.
I get a parsing error for several cases. The only working one is for a concrete value (isUndefined(4))
I attached the ma file with the different cases (undefBugTest.ma). Each one can be tested individually by commenting the others.
The cases are:
For the execution:
TIME=00:00:10:000
SIMU_ARGS="$SIMU_ARGS -t$TIME"
undefBugTest.ma.txt
The text was updated successfully, but these errors were encountered: