Leonardus
Loading...
Searching...
No Matches
Dissenting LeoScript Operator ==

STACK

$ X\ -- $

DESCRIPTION

The operator pops an object from the operand stack, produces a text representation of that object,
and writes the result to the standard output, followed by a new line.
This operator attempts to produce a result that resembles the red book syntax for creating the object.
But:

  • Core code operators are printed with their names.
  • Nested arrays, dictionaries and stacks are only printed to a nesting level of 2.

It differs from the red book operator:

  • it prints arrays and dictionaries with their content
  • generates "mark" instead of "-mark-"

ORIGIN

Core code registered in systemdict.