
setuserinfo - set information level of procedure

Calling sequence:
setuserinfo(expr [ , posint ])

Parameter:
expr     --  expression
posint   --  positive integer

Summary:

setuserinfo is used to set either the global \information level" or the
information level of a certain procedure given by expr to the value given
by posint.

The information level determines wether informations are printed via the
function userinfo or not.  userinfo normally is used to print progress
informations during the execution of procedures. userinfo prints informations
if either the information level of the procedure calling userinfo or the global
information level is greater than or equal to the level given in the call of
userinfo.

The global information level is changed if expr is the identifier Any. Otherwise
expr is assumed to be the name of the procedure whose level is to be changed.

The name of the procedure must be the value returned by procname inside
of the procedure.

The new information level is given by the second argument posint. If the
second argument is missing the level is set to 0, i.e. no further informations
are printed.

Note that by changing the global information level with Any the information
level of explicitly defined procedures is not changed.

>>  f:= proc(x) begin userinfo(2,"Argument:",x); end_proc:
    setuserinfo(f,2):
    f(12);

      f, Argument:, 12

See also:  help, info, procname , userinfo

