Opened 9 years ago

Last modified 9 years ago

#3920 new enhancement

smiplify swap args

Reported by: Vitalij Ruge Owned by: Martin Sjölund
Priority: high Milestone: Future
Component: MetaModelica Version:
Keywords: Cc:

Description (last modified by Vitalij Ruge)

In some cases we have something like

   case(e1 as X(), e2 as Y() )
   guard
     ...
   equation
     ...
     then f(e1,e2)
   case(e2 as Y(), e1 as X())
   guard
     ...
   equation
     ...
     then f(e1,e2)

it would nice to have

   case(e1 as X(), e2 as Y()) /*key-word?*/
   case(e2 as Y(), e1 as X())
   guard
     ...
   equation
     ...
     then f(e1,e2)

Change History (1)

comment:1 by Vitalij Ruge, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.