Changes between Initial Version and Version 2 of Ticket #1746


Ignore:
Timestamp:
2012-08-17T13:31:34+02:00 (12 years ago)
Author:
sjoelund.se
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1746

    • Property Cc changed from mburisch, to mburisch
    • Property Component changed from to Code Generation
    • Property Milestone changed from to 1.9.0
  • Ticket #1746 – Description

    initial v2  
    11Array 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:
    22
    3 {{{model Test2
     3{{{
     4model Test2
    45  function func
    56    input Integer idx;
     
    1415  parameter Integer p1 = func(1);    // = 1
    1516  parameter Integer p2 = func(idx);  // = 2
    16 end Test2;}}}
     17end Test2;
     18}}}