Changes between Initial Version and Version 2 of Ticket #1746
- Timestamp:
- 2012-08-17T11:31:34Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1746
- Property Cc mburisch, → mburisch
- Property Component → Code Generation
- Property Milestone → 1.9.0
-
Ticket #1746 – Description
initial v2 1 1 Array access inside a function seems to be 0-based, whereas I think it should be 1-based. Furthermore it depends on wheter evaluation is during compile time (1-based) or runtime (0-based). Se the following example: 2 2 3 {{{model Test2 3 {{{ 4 model Test2 4 5 function func 5 6 input Integer idx; … … 14 15 parameter Integer p1 = func(1); // = 1 15 16 parameter Integer p2 = func(idx); // = 2 16 end Test2;}}} 17 end Test2; 18 }}}