Changes between Initial Version and Version 1 of Ticket #3622


Ignore:
Timestamp:
2016-01-06T15:17:55Z (9 years ago)
Author:
Lennart Ochel
Comment:

Once the equation A.protec = 1 is commented out, the model should fail exactly as it does, since there is indeed one missing equation. The second issue is the missing error message. I think we should display an error message and abort the translation if protected elements get accessed via dot notation. If needed, a flag could be introduced to continue the translation anyway.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3622

    • Property Component UnknownFrontend
  • Ticket #3622 – Description

    initial v1  
    11When writing the following two models
    22
     3{{{#!mo
    34class AccessRights
    45  Real publ;
     
    1213  A.publ = 10;
    1314  A.protec = 1;
    14 end Glob;
     15end Glob;
     16}}}
    1517
    1618The Glob model is successfully compiled and a simulation is conducted (using OpenModelica v1.9.3). Only publ can be displayed in output (not A.protec). When the A.protec = 1 equation is commented out, an error message is displayed (not enough equations).