Opened 13 years ago

Closed 6 years ago

#2201 closed defect (wontfix)

OMC allows non-vector array expressions as ranges in for-loops

Reported by: Per Östlund Owned by: somebody
Priority: normal Milestone: Future
Component: Frontend Version: trunk
Keywords: Cc:

Description

The specification states that the range expression of a for-loop shall be a vector expression, i.e. a one-dimensional array, but OMC allows multi-dimensional arrays too. To be more compliant we should forbid this by default, and possibly add a flag to allow it as an OM extension.

Change History (3)

comment:1 by Francesco Casella, 9 years ago

@perost is this still relevant?

in reply to:  1 comment:2 by Per Östlund, 9 years ago

Replying to casella:

@perost is this still relevant?

It looks like this will actually be allowed in future versions of Modelica, see ​this ticket. Of course, I've already implemented this check in the new instantiation, but it's just a matter of removing a couple of lines of code to get rid of it. I guess we should leave this open until the matter has been discussed at a design meeting.

comment:3 by Per Östlund, 6 years ago

Resolution: → wontfix
Status: new → closed

Seems no one really cares about this, so we might as well close this until it actually becomes an issue.

Note: See TracTickets for help on using tickets.