Skip to main content
Version: 6.x

@ statement

The @ statement uses metacode.

Syntax

@name(param1, ..., paramN);

Description

The @ statement generates code obtained from the metacode with the name name, replacing metacode parameters with the values of its own parameters and executing the special ## and ### operations.

Parameters

  • name

    The name of the metacode used. Composite ID.

  • param1, ..., paramN

    The list of statement parameters that will be substituted for the parameters of the metacode used. The parameters can be a composite ID, a class ID, a literal or the empty parameter when nothing is passed as a parameter.

Examples

CLASS Book;
@objectProperties(book, INTEGER, 'Book');

CLASS Flower;
@objectProperties(flower, BPSTRING[100], ); // if the parameter is not passed, then it will be empty

CLASS Table;
@objectProperties(table, NUMERIC[14,2]);