Opened 11 years ago
Closed 11 years ago
#2602 closed defect (fixed)
Handle function default arguments better
Reported by: | Martin Sjölund | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
We need to handle function default arguments better. Either by saying we elaborate into f(x,$defaultValue)
and creating special C-code that handles this... Or by adding the correct expression in the DAE.Exp
.
function f input Real x; input Real y := x; output Real s := x+y; end f; model M Real x = f(y); Real y,z; end M;
Note:
See TracTickets
for help on using tickets.
Fixed in r19848.