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: adabe588@… 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 Martin Sjölund, 12 years ago

I get the following output:

{true,true,true,true}
true
""
f

""

Which is the expected output. It works correctly both with nogen and noevalfunc (but not with both).

comment:2 by Martin Sjölund, 12 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.