Opened 14 years ago

Closed 4 years ago

Last modified 4 years ago

#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 Martin Sjölund, 14 years ago

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).

comment:2 by Dietmar Winkler, 9 years ago

Cc: perost, → perost
Milestone: Future

comment:3 by Per Östlund, 4 years ago

Component: *unknown*
Resolution: fixed
Status: newclosed

Fixed since the new frontend does not evaluate impure functions unless it's absolutely necessary.

comment:4 by Francesco Casella, 4 years ago

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