up previous next
***** NOT YET UPDATED TO CoCoA-5: follow with care *****
Standard IO is what takes places normally when one interacts with
CoCoA accepts and interprets strings typed in by the user and prints
out expressions. If E is a CoCoA object, then the command
causes the value of E to be printed to the CoCoA window. One may also
use the functions
for more control over the
format of the output.
The official devices that are being used here are
. So for instance, the commands
used with the standard devices although they are really meant to be
used with the other devices.
Print E On DEV.OUT
is synonymous with
. Also, one may use
, for example, to get
the next 10 characters typed in the CoCoA window. Thus, clever use of
will allow your user-defined functions to prompt the user for
input, but normal practice is to pass variables to a function as
arguments to that function.