Changes between Version 1 and Version 2 of Ticket #3245


Ignore:
Timestamp:
2015-03-25T10:14:39Z (10 years ago)
Author:
Per Östlund
Comment:

Seems like the run-time is having some issues with assigning record components like that. A workaround is to rewrite

for i in 1:3 loop
  x[i].r := i;
  y[i] := x[i].r;
end for;

as

x.r := 1:3;
y := x.r;

Of course, your example is simplified, so maybe it's not possible for you to get rid of the loop in your actual model.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3245

    • Property Component UnknownRun-time
    • Property Owner changed from somebody to Per Östlund
    • Property Status newaccepted
  • Ticket #3245 – Description

    v1 v2  
    11OMEdit crashes when a record parameter is set in a function (see code below), it looks very similar to bug #3082.
    22
    3 {{{
     3{{{#!mo
    44model TestRecord
    55  function setRecordFunction