Opened 11 years ago

Closed 10 years ago

#2496 closed defect (fixed)

adding proper support of arrays to Susan language

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.1
Component: Code Generation Version: trunk
Keywords: Cc: Pavol Privitzer, Adrian Pop, Martin Sjölund, Per Östlund

Description

Currently, the Susan language has insufficient support of array types. The old [:] syntax should be adapted to the new array<T> syntax.

Change History (4)

comment:1 by Per Östlund, 11 years ago

I've fixed the code generation for arrays in Susan in r18367. The Susan syntax for arrays is "Type[:] ident" though, should we change this to "array<Type> ident" to be closer to MetaModelica syntax? It looks like it would be trivial to change it.

comment:2 by Adrian Pop, 11 years ago

Yes, I think we should only allow array<T> in Susan.
Per, can you change this and also check if we have any use of T[:] in the templates and if so remove them.

comment:3 by Per Östlund, 11 years ago

The syntax has now been changed to array<T> in r18371.

comment:4 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.