Data Types

Explain™ has fundamental data types which describe simple values. It also has more complicated data types such as VECTORS and CLASSES which are described elsewhere. Explain has the following fundamental data types:

INDEX

REAL

BITS

BOOL

STRING

NIL

The fundamental types can be manipulated directly as in most high-level computer languages. The idea of data type encapsulates several different issues:

BOOL = TRUE or FALSE

A = A + 1 A.SetValue(3.0,TRUE)

TRUE(BOOL constant) 5 (INDEX constant) 17.3E5 (REAL constant)

1 - 3 TRUE eq FALSE 0xFFFFFFFF xor 0xAF143

Sleep("Gamry") ; illegal because Sleep() needs INDEX

Data types are defined for constants, variables, the results of expressions ( e.g., A eq B has type BOOL), and the return values of function calls. Parameter usage is described under each individual function.