cc: [EMAIL PROTECTED]
Subject: Re: [ast-users] How to determine if a type has already been defined?
--------


> How can one see the defined types? Other languages have a defined
> function which allows one to test if a symbol has been defined.
> 
> 

${.sh.type} expands to the list of define types.

Also ${.sh.type.name:+defined}
will output defined if the type named name is defined.

You can also use [EMAIL PROTECTED] to get the *name if the type name
is defined.  If name was derived from another type, then the parent
type name followed by a . will preceded name.

For example,
        typeset -P Pt2d_t=(
                float x=1 y=2
        )
        typeset -P Pt3d_t=(
                Pt2d_t  _
                z=3
        )
The     [EMAIL PROTECTED] will give Pt2d_t.Pt3d_t

David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to