Changes between Initial Version and Version 1 of Ticket #1427


Ignore:
Timestamp:
2013-04-29T16:32:10Z (12 years ago)
Author:
Martin Sjölund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1427

    • Property Cc sjoelund.se, → sjoelund.se
    • Property ComponentBackend
  • Ticket #1427 – Description

    initial v1  
    11Both of the following work, but should not:
    2 {{{class A
     2{{{#!mo
     3class A
    34  Integer i = integer(time);
    45  discrete Real r = time;
    5 end A;}}}
     6end A;
     7}}}
    68
    7 Note that in a function, an assignment
    8 {{{i := r;}}}
    9 should still be allowed since in a function, all changes are discrete or continuous depending on your viewpoint. There probably will not be problems with inline functions since the variability of the call is simply the highest variability of the inputs.
     9Note that in a function, an assignment `i := r;` should still be allowed since in a function, all changes are discrete or continuous depending on your viewpoint. There probably will not be problems with inline functions since the variability of the call is simply the highest variability of the inputs.
    1010
    1111(3.8 Variability of Expressions "If v is a discrete-time component then expr needs to be a discrete-time expression.")