Opened 12 years ago
Closed 12 years ago
#1784 closed defect (worksforme)
Imported function not called from script when noevalfunc is not specified
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Frontend | Version: | |
Keywords: | Cc: |
Description
This function is not called (f
is not printed) unless noevalfunc
is added to the +d
flags. I'm not sure what noevalfunc
does, is this expected behavior? Unless I'm mistaken this problem did not exist before since it was in my testsuite since a few months back (not sure when it broke).
Reproduction:
package FunNotCalled function f algorithm print("f\n"); end f; end FunNotCalled;
script file:
setCommandLineOptions({"+d=rml","+g=MetaModelica","+showAnnotations","+showErrorMessages"}); loadFile("FunNotCalled.mo"); getErrorString(); FunNotCalled.f(); getErrorString();
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I get the following output:
Which is the expected output. It works correctly both with nogen and noevalfunc (but not with both).