2021 April Release

Defining a prototypePermanent link for this heading

If there are multiple use cases with the same parameters, it is possible to define the parameters once as prototype with the keyword prototype. A prototype specifies the arguments of a use case, including the type, the name and the in/out settings.

Example

prototype AttrSetDatePrototype (
  AttributeDefinition attrdef,
  ref datetime value,
  in datetime oldvalue
);

There is also the possibility to specify expression parameters with the key words expression prototype.

Example

expression prototype boolean LogPrototype (
  string data,
  out string line
);