Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Carlos Newsgroups: comp.lang.postscript Subject: Re: =?UTF-8?B?YmluZOKAmWluZw==?= loops Date: Tue, 21 Nov 2017 21:34:55 +0100 Organization: A noiseless patient Spider Lines: 29 Message-ID: <20171121213455.423a2bee@samara.DOMA> References: <0a457d13-e123-42e2-9a2f-f1801af3db2c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: reader02.eternal-september.org; posting-host="5f9a622bb99476dd792e9ccb4050154d"; logging-data="22630"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SF0da7VG8mCzAwtd+eWyboPzwJAXcU8A=" X-Newsreader: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) Cancel-Lock: sha1:9hIG0fI8oFPii1n/IPP85bf/Wz4= Xref: csiph.com comp.lang.postscript:3199 [jdaw1 , 2017-11-20 04:26] > Much PostScript code includes pieces resembling =E2=80=9C/=E2=80=A6 {=E2= =80=A6} bind def=E2=80=9D. Very > standard. >=20 > Rarely do I use =E2=80=9C=E2=80=A6 {=E2=80=A6} bind forall=E2=80=9D, and = likewise =E2=80=9C=E2=80=A6 {=E2=80=A6} bind repeat=E2=80=9D and =E2=80=9C= =E2=80=A6 > =E2=80=A6 =E2=80=A6 {=E2=80=A6} bind for=E2=80=9D. Is this just me? Are y= ou folks all enthusiastic bind=E2=80=99ers > of loops? >=20 > Let=E2=80=99s be specific. Would you bind:=20 >=20 > true > [ /showpage /setcolorspace /setcolorspace /setgray /setrgbcolor /sethsbco= lor /setcmykcolor /setpattern /setcolor /image /imagemask ] > {load type /operatortype ne {pop //false exit} if} forall >=20 > ? If I have a loop at top level, its body is almost never more complicated th= an a couple of gsave/grestore, a call to a named proc that does the work, and maybe a showpage. I don't bind them (but the proc that does the work is usu= ally bound, and, of course, therefore also the loop bodies in it). --=20