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 , 11 years ago
comment:2 by , 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:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.