Changes between Initial Version and Version 1 of Ticket #1927
- Timestamp:
- 2012-11-05T08:32:22Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1927 – Description
initial v1 1 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).1 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).