Opened 12 years ago
Last modified 12 years ago
#2113 closed defect
fill dimension arguments — at Version 2
Reported by: | Lennart Ochel | Owned by: | somebody |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: | Martin Sjölund, Adrian Pop |
Description (last modified by )
model test Real y[5]; Integer n; algorithm n := 0; y := fill(1, 5); n := n + 2; y[1:n] := fill(2, n); end test;
error message
[/home/lochel/Documents/tests/temp/bug_2113.mo:9:3-9:23:writable] Error: Wrong type or wrong number of arguments to fill(1, n)'. (in component <NO COMPONENT>)
I guess there is no reason (and nothing in the spec) to forces the dimension arguments to be of parameter variability.
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Yes, but nothing forces a tool to require that structural parameters be possible to evaluate before code generation either.
Lots of things are up to tools to decide ;) On the other hand, I think this is supported in function context already anyway, so handling it shouldn't be hard. You can do it.