Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!feeder.erje.net!eu.feeder.erje.net!feed.xsnews.nl!border-1.ams.xsnews.nl!feeder.xennanews.com!feeder3!nf36.xennanews.com!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.postscript Subject: Re: Type of element on stack Organization: Decebal Computing References: <87fw4gnafj.fsf@Compaq.site.inet> X-Homepage: http://www.decebal.nl/ Date: Sun, 11 Nov 2012 10:34:13 +0100 Message-ID: <87zk2olbze.fsf@Compaq.site.inet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:wBZNNxfXYMk0xrQOt2QxQCfb6aA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@xennanews.com Lines: 22 NNTP-Posting-Host: 84.53.123.169 (84.53.123.169) NNTP-Posting-Date: Sun, 11 Nov 2012 10:59:09 +0100 Xref: csiph.com comp.lang.postscript:1034 Op zondag 11 nov 2012 06:15 CET schreef Dan Coby: >> Is there a way to check for the type of an element on the stack? >> > > Yes. The type operator. See page 705 of the PLRM 3rd edition. > All of the operators are listed in the PLRM. > > > GS>1 type = > integertype > GS>[1] type = > arraytype > GS>(aaa) type = > stringtype Works like a charm. Thanks. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof