Changes between Version 1 and Version 12 of Ticket #1458


Ignore:
Timestamp:
2017-10-24T05:31:05Z (7 years ago)
Author:
Martin Sjölund
Comment:

That's the code from the flat Modelica. The output is now:

function f
  output Real y = y;
end f;

class A
  Real y = f();
end A;
[/home/marsj/tmp/a.mo:1:1-3:6:writable] Error: Cyclically dependent constants or parameters found in scope : {y} (ignore with -d=ignoreCycles).

But translation still continues...

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1458

    • Property Component BackendFrontend
    • Property Milestone1.12.0
    • Property Status newreopened
  • Ticket #1458 – Description

    v1 v12  
    11The check should probably be moved to the instantiation of functions (because we fall back to generation of code). We can check for usage of unbound variables in the same place later on...
     2{{{#!mo
     3function f
     4  output Real y = y;
     5end f;
     6
     7model A
     8  Real y = f();
     9end A;
     10}}}
    211
    312{{{#!mo