#1342 closed defect (fixed)
External functions should not be constant evaluated
Reported by: | Per Östlund | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | *unknown* | Version: | |
Keywords: | Cc: | Per Östlund |
Description
Modelica functions that call external code should not be constant evaluated, because we have no control over what side-effects they might cause.
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 9 years ago
Cc: | perost, → perost |
---|---|
Milestone: | → Future |
comment:3 by , 4 years ago
Component: | → *unknown* |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed since the new frontend does not evaluate impure functions unless it's absolutely necessary.
comment:4 by , 4 years ago
Milestone: | Future → 1.16.0 |
---|
Note:
See TracTickets
for help on using tickets.
Note: We now store a pure/impure attribute for functions. So this should be possible to implement (external functions should be impure by default, and a new annotation
__OpenModelica_Pure = true
could affect it; known pure functions (from MSL) should be part of the compiler).