Opened 10 years ago

Last modified 10 years ago

#2873 closed enhancement

Implement for-loop for arrays — at Version 1

Reported by: Per Östlund Owned by: Martin Sjölund
Priority: high Milestone: Bootstrapping
Component: MetaModelica Version: trunk
Keywords: Cc:

Description (last modified by Per Östlund)

It would be nice to be able to loop over arrays in the bootstrapped compiler, similar to how it's possible to loop over lists. E.g.:

  array<T> someArray;
algorithm
  for e in someArray loop
    // Some code
  end for;

Change History (1)

comment:1 by Per Östlund, 10 years ago

Description: modified (diff)
Summary: Implemented for-loop for arraysImplement for-loop for arrays
Note: See TracTickets for help on using tickets.