Skip to content

Time, modifiers and short class definitions. #3431

@qlambert-pro

Description

@qlambert-pro

The specs say that:

The variable time is a built-in variable available in all models and block, ...

In light of that is the following allowed:

package P
  function f
    input Real i;
    output Real[2] y = {i, i};
  end f;

  model Base
    Real[2] y;
  end Base;

  model Test = Base(y = 2.0 * (-f(time)));
end P;

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationSpecification of feature is unclear, but not incorrect

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions