Path: 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: 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 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 or Digital Equipment Corporation/Project Athena (The above opinions are MINE. Don't put my words in somebody else's mouth!)