check for a protected name - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/protected

type/protected - check for a protected name

Calling Sequence

type(x, protected)

Parameters

x

-

any expression

Description

• 

The call type(x, protected) checks to see if the expression x is a name of type protected. It returns true if x is a protected name, and false otherwise.

• 

Protection is used to prevent names from being modified by the user. Most of the Maple systems names are protected by default.

• 

Names can be protected with the function protect; and protection can be removed with unprotect.

• 

The set of protected names in Maple can be computed with select(type, {unames(), anames(anything)}, protected).

Examples

typesin,protected

true

(1)

typelhs,protected

true

(2)

typef,protected

false

(3)

protectf

typef,protected

true

(4)

See Also

protect, type


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