Opened 12 years ago
Closed 4 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)
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 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 , 4 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.
@perost is this still relevant?