Opened 16 years ago
Last modified 15 years ago
#1125 closed defect (worksforme)
Name lookup fails when using functions from kernel command view (from MathCore)
| Reported by: | Jan Brugård | Owned by: | Jan Brugård |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: | Jan Brugård, |
Description
Name lookup fails sometimes when using functions from kernel command view, for example the following function
function foo
annotation(Diagram(coordinateSystem(extent={{-148.5,-105.0},{148.5,105.0}}, preserveAspectRatio=true, initialScale=0.1, grid={10,10})));
input String a;
algorithm
Modelica.Utilities.Streams.error(a);
end foo;
fails with:
foo("aaa")
Error: Class Modelica.Utilities.Streams.error not found in scope global scope.
Whereas it works if you use the function in a model and simulate it.
Note:
See TracTickets
for help on using tickets.

http://intranet/trac/mathmodelica/ticket/2045