Opened 6 years ago
Closed 6 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 , 6 years ago
| Component: | Code Generation → MetaModelica |
|---|
comment:2 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 6 years ago
comment:4 by , 6 years ago
| Milestone: | Future |
|---|---|
| Resolution: | → wontfix |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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