🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #723

Concatenating strings?

#723
From: Russ Nelson
Date: Fri, 21 Jul 1989 20:07
15 lines
1041 bytes
How do I concatenate strings?  I want to concatenate FirstName and LastName
with a single space between them.  The following doesn't work because the
string on the bottom of the stack is its maximum length.

	% concatenate FirstName and LastName.
	FirstName length LastName length add 1 add string
	dup 0 FirstName putinterval
	dup dup length ( ) putinterval
	dup dup length LastName putinterval
	% then I pass the resultant string to a subroutine.

Or am I asking the wrong question, i.e. am I doing it the wrong way?

-- 
--russ (nelson@clutx [.bitnet | .clarkson.edu])|(70441.205@compuserve.com)
Technical Details
Message-ID: <1989Jul21.200758.22491@sun.soe.clarkson.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!image.soe.clarkson.edu!nelson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!image.soe.clarkson.edu!nelson
From: nelson@sun.soe.clarkson.edu (Russ Nelson)
Newsgroups: comp.lang.postscript
Subject: Concatenating strings?
Message-ID: <1989Jul21.200758.22491@sun.soe.clarkson.edu>
Date: 21 Jul 89 20:07:58 GMT
Reply-To: nelson@clutx.clarkson.edu
Organization: Clarkson University, Potsdam, NY
Lines: 15