retrieve definition of user-defined type - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : TypeTools : TypeTools/GetType

TypeTools[GetType] - retrieve definition of user-defined type

Calling Sequence

GetType(typename)

Parameters

typename

-

symbol; name of the type

Description

• 

The definition for the type typename is returned.

• 

This function can only be used to retrieve definitions of types that have been registered using TypeTools[AddType]. In particular, it cannot be used to retrieve built-in types.

Examples

TypeTools[AddType]tff,'identicaltrue,identicalfalse,identicalFAIL'

TypeTools[GetType]tff

identicalFAIL,identicalfalse,identicaltrue

(1)

TypeTools[AddType]integer7,t→evalbt::integerandiremt,7=0

a:=TypeTools[GetType]integer7

a:=TypeTools/integer7

(2)

printa

t→evalbt::integerandiremt,7=0

(3)

See Also

type, type[structured], TypeTools, TypeTools[AddType], TypeTools[GetTypes]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam