Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1034

Re: Type of element on stack

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 <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Re: Type of element on stack
Organization Decebal Computing
References <87fw4gnafj.fsf@Compaq.site.inet> <C5-dnQI9gIUsqQLNnZ2dnUVZ_s6dnZ2d@earthlink.com>
X-Homepage http://www.decebal.nl/
Date Sun, 11 Nov 2012 10:34:13 +0100
Message-ID <87zk2olbze.fsf@Compaq.site.inet> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Type of element on stack Cecil Westerhof <Cecil@decebal.nl> - 2012-11-11 03:24 +0100
  Re: Type of element on stack Dan Coby <adcoby@earthlink.net> - 2012-11-10 21:15 -0800
    Re: Type of element on stack Cecil Westerhof <Cecil@decebal.nl> - 2012-11-11 10:34 +0100
  Re: Type of element on stack Don Lancaster <don@tinaja.com> - 2012-11-12 20:41 -0800
    Re: Type of element on stack Cecil Westerhof <Cecil@decebal.nl> - 2012-11-13 07:31 +0100
      Re: Type of element on stack "luser.droog" <luser.droog@gmail.com> - 2012-11-16 18:19 -0600
        Re: Type of element on stack Cecil Westerhof <Cecil@decebal.nl> - 2012-11-17 14:39 +0100

csiph-web