4.10.4VARIABLES:

local

Makes the input-named variable(s) accessible only to the current procedure and the procedures it calls.

>(local "x "y "z)

make

Makes the input-named variable the value of the input object.

?make "side 50 ?:side

50

4.10.5PROCEDURES:

end

Indicates the end of a procedure definition; must stand alone at the beginning of the last line.

?to square

>repeat 4[fd 50 rt 90] >end

square defined ?square

po

(print out) Displays the definition(s) of the specified procedure(s) or variable(s).

?po "square to square

repeat 4[fd 50 rt 90] end

?po "X x is 3

pots

(print out titles) Displays the names and titles of all procedures in the workspace.

?pots

Chapter 4.11

AMSTRAD Disc Drive & Interface DDI-1 Manual

Page 69
Image 69
Amstrad DDI-1 manual Variables, Procedures