🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1818

Re: PostScript coding style question

#1818
From: Jim Dailey
Date: Wed, 19 Aug 1992 13:20
28 lines
1547 bytes
glenn@rightbrain.com (Glenn Reid) writes:
>Rob Bradlee writes
>> Is the cleartomark a legitimate way to make sure you've left the
>> stack in good shape or a cheap trick that absolves you from the
>> effort of thinking?
>
>I think it's a cheap trick, myself :-)
>
>The only justified use of it is if you include arbitrary PostScript
>that you do not know or trust (as in an EPS file). ...>
>Just my $.02

Well, I found another use for it that I can live with.  I wrote a routine
to produce a table that contains an arbitrary number of lines.  It is
invoked with:

   mark [(stuff) (stuff) ...]
        [(more stuff) ... ]
        ...
        [(last stuff) ...] functioncall

I use counttomark to find out how many lines are in the table and do a
cleartomark at the end just for completeness.

---
Jim  jdailey@dadd.ti.com
   TI pays absolutely no attention to me or my opinions; therefore,
   the foregoing posting cannot possibly represent TI's viewpoint.
Technical Details
Message-ID: <1992Aug19.132049.9340@csc.ti.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!sdd.hp.com!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!usenet
References: <858@rtbrain.rightbrain.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!sdd.hp.com!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!usenet
From: jdailey@dadd.ti.com (Jim Dailey)
Subject: Re: PostScript coding style question
Message-ID: <1992Aug19.132049.9340@csc.ti.com>
Sender: usenet@csc.ti.com
Nntp-Posting-Host: mozart.dadd.ti.com
Reply-To: jdailey@dadd.ti.com
Organization: Design Automaton Div., Texas Instruments, Inc.
References: <858@rtbrain.rightbrain.com>
Date: Wed, 19 Aug 1992 13:20:49 GMT
Lines: 29