Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2561
| Newsgroups | comp.lang.postscript |
|---|---|
| From | Peter Billam <peter@www.pjb.com.au> |
| Subject | Re: How to test if a procedure is defined ? |
| References | <slrnnibqmm.54q.peter@box8.pjb.com.au> <ng5271$ufi$1@dont-email.me> <slrnnida14.1og.peter@box8.pjb.com.au> <79ad39d3-c85b-45ad-a352-ec1828161d9b@googlegroups.com> |
| Message-ID | <slrnnidqhp.2s3.peter@box8.pjb.com.au> (permalink) |
| Date | 2016-05-02 05:48 +0000 |
| Organization | Unlimited download news at news.astraweb.com |
On 2016-05-02, luser- -droog <mijoryx@yahoo.com> wrote:
>> > Peter Billam wrote:
>> /randomrgb where not { (/home/pjb/ps/lib/colours.ps) run } if
>
> `where` returns the dict in the true case,
Ah... indeed.
> so you probably want something more like
> /randomrgb where { pop }{ (/home/pjb/ps/lib/colours.ps) run } ifelse
Thanks :-)
Peter
--
Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html
Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread
How to test if a procedure is defined ? Peter Billam <peter@www.pjb.com.au> - 2016-05-01 11:39 +0000
Re: How to test if a procedure is defined ? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2016-05-01 08:04 -0600
Re: How to test if a procedure is defined ? Peter Billam <peter@www.pjb.com.au> - 2016-05-02 01:06 +0000
Re: How to test if a procedure is defined ? luser- -droog <mijoryx@yahoo.com> - 2016-05-01 19:45 -0700
Re: How to test if a procedure is defined ? Peter Billam <peter@www.pjb.com.au> - 2016-05-02 05:48 +0000
csiph-web