procname.icn: Procedure to produce name of procedure

link procname
May 2, 2001; Ralph E. Griswold
This file is in the public domain.

procname(p, x) produces the name of a procedure from a procedure value.
Here, the term "procedure" includes functions, operators, and
record constructors.

If x is null, the result is derived from image() is a relatively
straightforward way.  In the case of operators, the number of
arguments is appended to the operator symbol.

If x is nonnull, the result is put in a form that resembles an Icon
expression.

procname() fails if p is not of type procedure.

Source code | Program Library Page | Icon Home Page