From ftm
Revision as of 16:30, 11 April 2010 by Norbert (talk | contribs) (FTM Object Definitions)
Jump to: navigation, search

The ftm.object external can be used to statically define FTM and name objects, variables and constants. The graphical external has two text fields. The object or value definition is entered into the left text field. The right field allows for defining

Additional properties such as the scope of the object's name are defined in the inspector of the external.

FTM Object Definitions

For statically defining an FTM object with the ftm.object external the following syntax is required:

  • <sym: class name> <list: instantiation arguments> [ , <list: initialization message> ... ]

The following example defines a floating-point matrix (fmat class) named myfmat and initializes it with random values:

Ftm.object-obj.jpg

Constant Definitions

Constants can be defined with the ftm.object external using the const keyword:

  • <'const'> <any: constant value>

As for FTM objects, the constant's name can be defined in the name field.

Variable Definitions