Ticket #66 (new defect)

Opened 3 months ago

'==' and '<>' in parameter Real expressions

Reported by: petar Owned by: otter
Priority: normal Milestone: ModelicaSpec3.1
Component: --Modelica Specification-- Version: 3.0
Severity: normal Keywords:
Cc: Hide ticket: no

Description

Dymola allows '==' and '<>' to be used in parameter or constant Real expressions, even though the specification forbidds using '==' and '<>' for Reals outside functions. This is used in e.g. the BondGraph library. I suggest that the specification text is rewritten to allow this.
Example:

model A
  parameter Real x= if T == 0.0 then 1.0 else 2.0;
  parameter Real T=0.0;
end A;

Attachments

Add/Change #66 ('==' and '<>' in parameter Real expressions)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.