Procedures; Thing; Define; Po - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

*
thing
Outputs the value of the input-named variable.
?make "computer "amstrad
?thing "computer
amstrad
Procedures:
*
define
Makes the input definition list the definition ofthe specified procedure name.
?define "say.heLLo [[J [pr "heLLoJJ
end
?po "say.heLLo
to say.heLLo
pr "heLLo
?text "say.heLLo
[[J [pr "heLLoJJ
end
Indicates the end of a procedure definition; must stand alone at the beginning of the
last line.
po
?to square
>repeat 4 [fd 50 rt 90J
>end
square defined
?square
(print out) Displays the definition(s) of the specified procedure(s) or variable(s).
?po "square
to square
repeat 4 [fd 50 rt 90J
end
?make "x 3
?po "x
x is 3
Chapter 6 Page 18
Introduction to Logo

Advertisement

Table of Contents
loading

Table of Contents