Porting Postscript code to TRANSCRIPT

Dar Scott dsc at swcp.com
Sat Jan 17 17:27:42 EST 2004


On Saturday, January 17, 2004, at 02:55 PM, Alejandro Tejada wrote:

> But I do not understand how these commands or
> functions works on the data: dup store exch mat sub.

any dup any any
Duplicates the top of the stack.
Example
/double {dup +} def

key value store
Replace value of key in dictionary with new value.

any1 any2 exch any2 any1
Exchanges top two elements.

mat
This is not part of PostScript, but is defined in the source.

num1 num2 sub dif
Removes top two items from the stack and puts the difference onto the 
stack.

You can get the "red book" online from Amazon.  Title:  "PostScript 
Language Reference"

You might find online references or tutorials.

Dar Scott










More information about the use-livecode mailing list