The defineop operator
This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP.
dict defineop -
Defines one or more procedures (only) so that they appear as operators to the PostScript-language code using them. This presentation as an operator extends to the effects of immediate evaluation (using the // syntax).
The keys in the dictionary dict are always names (of the procedures) and the values are procedures or null
objects. The major restriction is that the key must not already be the name of an operator.
The names in the dict supplied to defineop
must not be pre-existing operators. You may not shadow an operator created with defineop
. The new operators are created in systemdict
.
To remove an operator created with defineop
, you must call defineop
with a dictionary containing the same name, but associating that name with a value of null
.