Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2557
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail |
|---|---|
| Newsgroups | comp.lang.postscript |
| From | Peter Billam <peter@www.pjb.com.au> |
| Subject | How to test if a procedure is defined ? |
| Reply-To | contact.html@www.pjb.com.au |
| User-Agent | slrn/1.0.2 (Linux) |
| Message-ID | <slrnnibqmm.54q.peter@box8.pjb.com.au> (permalink) |
| Date | 01 May 2016 11:39:04 GMT |
| Lines | 17 |
| Organization | Unlimited download news at news.astraweb.com |
| NNTP-Posting-Host | 1954b90d.news.astraweb.com |
| X-Trace | DXC=]bXLVPN]`5=JQj]j1AWO\;L?0kYOcDh@:e9Xhm8m]Vi9iG8i?S9JJ<5HI6bY5_;Lh9M?B`lBA]:55S2KfMWOVLP;3d2>7O?dKP2 |
| Xref | csiph.com comp.lang.postscript:2557 |
Show key headers only | View raw
Greetings. I'm wanting to put together something like perl or lua 'require', by testing if some procedure is defined, and if not then run-ning the PS 'library' file that will define it. But I don't see how to test if a procedure is defined. Anything like gloop type or gloop gcheck just crashes if gloop is undefined, before type or gcheck get executed. /gloop type just reports nametype, even if gloop doesn't exist. Is there eg: a way to invoke gloop within a crash-free sandbox, eg like pcall in lua ? Any other way to test if it's defined ? Thanks, regards, Peter -- Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html
Back to comp.lang.postscript | Previous | Next — Next 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