Hi Patrick,
> Does anyone have any neat method of concatenating strings
> in postscript - preferably without requiring a variable to
> be defined. My version, works but it's messy.
Well here's my latest, and likely last, effort.
If anyone on the list can do it more simply I would be
most interested.
%!
% Jim Easton's strcat or append
(abcdef)(xyz) % assume this's what we're given
exch dup length % (xyz) (abcdef) 6
2 index length % (xyz) (abcdef) 6 3
add string dup dup % (xyz) (abcdef) (.........) (.........) (.........)
5 2 roll copy % (abcdef...) (abcdef...) (xyz) (abcdef)
length exch % (abcdef...) (abcdef...) 6 (xyz)
putinterval % (abcdefxyz)
Jim
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------