Manual

63
cleartomark
cleartomark
Description
Discards all objects from the operand stack down to, and including, the top-most mark object.
Usage
Mark NAny..1Any cleartomark
Mark Mark. Top-most
mark
object on the stack.
NAny..1Any Any. All objects on the operand stack above the top-most
mark
object.
Comments
The
cleartomark
operator discards all objects from the operand stack above the top-most
mark
object. The operator also discards the mark object itself.
By pushing a
mark
object onto the stack, the programmer can later restore the stack to that prior
level simply by using the cleartomark operator.