Changes between Initial Version and Version 1 of Ticket #1707, comment 1


Ignore:
Timestamp:
2012-08-31T11:50:45Z (12 years ago)
Author:
Martin Sjölund

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1707, comment 1

    initial v1  
    11Note that a function may not extend from a record (see 7.1.3 in https://modelica.org/documents/ModelicaSpec32Revision1.pdf), and that the constants have to be protected.
    22
    3 {{{function getVariableNameTable
     3{{{
     4function getVariableNameTable
    45  extends modelInExpressionBase;
    56public
     
    1112    variableNameTable[i] := if indexModel == 1 then model1[i] else model2[i];
    1213  end for;
    13 end getVariableNameTable;}}}
     14end getVariableNameTable;
     15}}}
    1416
    1517Does work (except code generation needs to be fixed)