Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Type of element on stack

Received: by 10.68.223.72 with SMTP id qs8mr6514211pbc.8.1352628215177;
        Sun, 11 Nov 2012 02:03:35 -0800 (PST)
Path: 6ni74660pbd.1!nntp.google.com!news.glorb.com!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 <Ce...@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>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:wBZNNxfXYMk0xrQOt2QxQCfb6aA=
MIME-Version: 1.0
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
Content-Type: text/plain; charset=us-ascii

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