Opened 12 years ago

Closed 12 years ago

#1796 closed defect (fixed)

Subscripts of last type of cref with stripped subs are reversed

Reported by: Jens Frenkel Owned by: Per Östlund
Priority: blocker Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Subscripts Cc: Adrian Pop, Martin Sjölund

Description

Somewhere in the frontend the subscripts of the array types are reversed. For Example in the DoublePendulum Model

Real world.z_label.lines[3,2,2]

have as last type

Type: /tp:T_REAL[2, 2, 3]/

Change History (1)

comment:1 by Per Östlund, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r12825. The problem was in Inst.makeCrefBaseType which inserted the dimensions one by one in the wrong order. It also did silly things like creating a nested array type only to immediately flatten it.

Note: See TracTickets for help on using tickets.