Opened 12 years ago

Closed 7 years ago

Last modified 7 years ago

#1927 closed defect (fixed)

Handle instantiation of builtin functions better in new instantiation

Reported by: Per Östlund Owned by: Per Östlund
Priority: high Milestone: 1.13.0
Component: New Instantiation Version: trunk
Keywords: Cc: Adrian Pop, Martin Sjölund

Description (last modified by Per Östlund)

In the new instantiation we currently handle builtin function calls by checking if the function we're looking for is one of the known builtin functions. This is not correct, since it makes it impossible to redefine the builtin functions. We should instead look them up in the environment, and ideally instantiate them as normal functions. Some of the builtin functions might need special handling, but I think it should be possible to define all builtin functions with overload and __OpenModelica_varArgs, at least for the purpose of instantiation (typing might be another matter).

Change History (3)

comment:1 by Per Östlund, 12 years ago

Description: modified (diff)

comment:2 by Per Östlund, 7 years ago

Resolution: fixed
Status: newclosed

comment:3 by Martin Sjölund, 7 years ago

Milestone: Future1.13.0
Note: See TracTickets for help on using tickets.