From ftm
Jump to: navigation, search
(Constant Definitions)
(FTM Object Definitions)
Line 4: Line 4:
 
For statically defining an FTM object with the ''ftm.object'' external the following syntax is required:
 
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> ... ]
 
* <sym: class name> <list: instantiation arguments> [ , <list: initialization message> ... ]
 +
 +
The following example defines a floating-point matrix named (''fmat'' class) ''myfmat'' and initializes it with random values:
 +
[[Ftm.object-obj.jpg]]
  
 
The name for the FTM object can be defined in the name field of the ''ftm.object'' external on the right of the definition.
 
The name for the FTM object can be defined in the name field of the ''ftm.object'' external on the right of the definition.

Revision as of 15:25, 11 April 2010

The ftm.object external can be used to statically define FTM and name objects, variables and constants.

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 named (fmat class) myfmat and initializes it with random values: Ftm.object-obj.jpg

The name for the FTM object can be defined in the name field of the ftm.object external on the right of the definition.

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