Managing variables in your workspace

Seeing what you have got

Variables set up using make are global variables - i.e. they are accessible by any procedure you invoke including procedures you may define subsequently. They simply lie in wait in your workspace until called on. In these circumstances, it is not difficult to clutter up your workspace with variables you have forgotten and maybe no longer need. The following primitives are provided in Terrapin Logo for the Mac to help you to keep track of the current state of play. Other systems have equivalent tools.

poname "VARIABLE.NAME

displays variable

poname [VARIABLE.NAME.LIST]

displays listed variables

poall

displays all variables (and procedures too)

There is a very handy primitive procedure called.names which returns a list of the variable names currently in use. You can use this to provide an input to any procedure and hence say - amongst other things - poname names or pr names.

Editing what you have got

Variables can be checked and - if necessary - modified in the Edit window. To get them there you can use:

edname "VARIABLE.NAME

brings variable into the edit window

edname [VARIABLE.NAME.LIST]

brings listed variables into the edit window

edall

brings all variables (and procedures) into the edit window

Clearing up

ername "VARIABLE.NAME
erases variable

ername [VARIABLE.NAME.LIST]

erases listed variables

erall

erases everything - variables and procedures . . .



Ron Brasington
Department of Linguistic Science
The University of Reading
Reading
UK

E-mail: ron.brasington@rdg.ac.uk