Opened 11 years ago

Last modified 10 years ago

#2535 closed defect

Array Initialziation in Function Fails — at Initial Version

Reported by: ravi Owned by: somebody
Priority: normal Milestone: 1.9.2
Component: Run-time Version: trunk
Keywords: function, array, initialization Cc:

Description

model tryme

Real y ;

equation

y = myfun(3.4) * y + 2 ;

end tryme;

function myfun
input Real x ;
output Real y ;

protected Real z[3 ]= {1,2,3} ; This Falis (why ??)

protected Real z[3] ; Works

algorithm

z[1] := x ;
y := 2 * z[1] ;

end myfun;

Change History (0)

Note: See TracTickets for help on using tickets.