🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5005

Re: defeating save/restore

#5005
From: John T Kohl
Date: Wed, 13 Mar 1991 19:30
22 lines
1487 bytes
In article <38972@netnews.upenn.edu> jeffe@eniac.seas.upenn.edu (George Jefferson ) writes:

> I am trying to add a bit of my own postscript code 
> to existing code which wraps each page in a save/restore pair

> My problem is that I would like to pass a value (integer, string whatever)
> from one page to the next..

I thought someone would have mentioned it by now, but...

The trick I've used on occasion is to leave a value on the stack.  The
hard part is usually making sure it's in the right place on the stack
and doesn't get wiped by other operators.  This might be helped by using
a mark and counttomark to figure out how far to roll the stack to deposit
the value.

Again, make sure it's not a composite object.  An integer should be no
problem....
--
John Kohl <jtkohl@ATHENA.MIT.EDU> or <jtkohl@MIT.EDU>
Digital Equipment Corporation/Project Athena
(The above opinions are MINE.  Don't put my words in somebody else's mouth!)
Technical Details
Message-ID: <JTKOHL.91Mar13143009@quicksilver.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!mit-eddie!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jtkohl
References: <38972@netnews.upenn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!mit-eddie!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jtkohl
From: jtkohl@MIT.EDU (John T Kohl)
Newsgroups: comp.lang.postscript
Subject: Re: defeating save/restore
Message-ID: <JTKOHL.91Mar13143009@quicksilver.MIT.EDU>
Date: 13 Mar 91 19:30:16 GMT
References: <38972@netnews.upenn.edu>
Sender: news@athena.mit.edu (News system)
Organization: MIT Project Athena
Lines: 22
In-Reply-To: jeffe@eniac.seas.upenn.edu's message of 8 Mar 91 21:50:52 GMT