Ticket #3446: impure.mo
File impure.mo, 460 bytes (added by anonymous, 9 years ago) |
---|
Line | |
---|---|
1 | impure function func |
2 | //function func |
3 | input String name; |
4 | output String out; |
5 | algorithm |
6 | out := name + ".ext"; |
7 | end func; |
8 | |
9 | block Impure |
10 | Modelica.Blocks.Sources.CombiTimeTable tab(fileName=func("file"), |
11 | tableName="tab", tableOnFile=true); |
12 | end Impure; |
13 | |
14 | // When impure the C code somehow thinks that we are trying to give it a usertab, |
15 | // which is not implemented in OpenModelica |
16 | // Looking at the source it is likely that somehow the C code is getting "NoName" |