Changes between Initial Version and Version 1 of Ticket #1707, comment 1
- Timestamp:
- 2012-08-31T11:50:45Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1707, comment 1
initial v1 1 1 Note 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. 2 2 3 {{{function getVariableNameTable 3 {{{ 4 function getVariableNameTable 4 5 extends modelInExpressionBase; 5 6 public … … 11 12 variableNameTable[i] := if indexModel == 1 then model1[i] else model2[i]; 12 13 end for; 13 end getVariableNameTable;}}} 14 end getVariableNameTable; 15 }}} 14 16 15 17 Does work (except code generation needs to be fixed)