next up previous contents
Next: String Format Scan Up: Printing Routines Previous: Pretty Print a Square

Print Information about a Procedure

Calling Sequence:
t : name

Synopsis: The PrintProc function prints out a description of a Darwin procedure. If t is not a valid procedure, an error is returned.

If the user defines their own procedure and adds a descriptor line (see the example below and Section [*]), then PrintProc will send the contents of this entry to the standard output.


> PrintProc(factorial);
> usersprocedure := proc()
>  description 
>  ' This procedure does nothing except provide an example of how
>    the descriptor line in Darwin works
>  ';
>  % do nothing
> end:
> PrintProc(usersprocedure);

See also: print

Gaston Gonnet