Sfairadora

  • Reference Guide

Struct

Struct(flag Type name, flag Type name, ...)
Creates a data type of the structure category. The Type parameters specify the type of the elements. The name parameters specify their names. The name parameters must be identifiers. The flag can be either the keyword optional or left empty. If the optional keyword is used, the element declared is optional (that is, its value can be left unspecified).
Example:
def Book = Struct( String title,
optional String author,
optional Int year);

See Also

def