September 22, 1999 | Strong Typing | Slide #6 |
Side note: Declaration is optional, defaults to:
INTEGER for variables that begin with I, J, K, L, M, N
REAL for other variables
Array types also:
INTEGER A(10)
Functions have types:
FUNCTION F(X) INTEGER F, X F = X+1 RETURN
N = F(37)
Static type checking
Also called strong type checking
Next | Copyright © 1999 M-J. Dominus |