Opened 5 years ago

Closed 5 years ago

#5578 closed defect (wontfix)

Qualified tuple assignments in MetaModelica

Reported by: Karim Adbdelhak Owned by: Martin Sjölund
Priority: high Milestone:
Component: MetaModelica Version:
Keywords: Cc:

Description

Following code inside an arbitrary match of an equation returning a qualified reference in a tuple does not work:

case eqn as BackendDAE.EQUATION() algorithm
  (eqn.exp,extArg) := SomeFunc(eqn.exp,extArg);
then eqn;

whereas replacing it by an artificial temporary and assigning it afterwards does.

case eqn as BackendDAE.EQUATION() algorithm
  (e,extArg) := SomeFunc(eqn.exp,extArg);
  eqn.exp := e;
then eqn;

It also works if the function only returns a single value.

Change History (4)

comment:1 by Per Östlund, 5 years ago

Component: Code GenerationMetaModelica

comment:2 by Per Östlund, 5 years ago

Owner: changed from Per Östlund to Martin Sjölund
Status: newassigned

comment:3 by Martin Sjölund, 5 years ago

This is the expected result. case eqn.exp as 3, etc will also not create such an object. (The assignment is an inline match)

comment:4 by Martin Sjölund, 5 years ago

Milestone: Future
Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.