Error, attempting to assign to ... which is protected
|
Description
|
|
Most Maple systems names are protected by default. Protection is used to prevent names from being modified by the user.
Names can be protected with the function protect, and protection can be removed with unprotect. It is not recommended that you unprotect Maple protected names.
The calling sequence select(type, {unames(), anames(anything)}, protected) returns the set of protected names in Maple.
|
|
Examples
|
|
Example 1
To verify that a name is protected, use the type(expr,protected) calling sequence.
>
|
|
| (2.1) |
Example 2
If the name is protected, the command returns true.
>
|
|
| (2.2) |
Example 3
You can protect names using the protect command.
>
|
|
>
|
|
Note: Use quotes to prevent evaluation of the name .
Example 4
You can remove protection from a name with the unprotect command.
>
|
|
>
|
|
| (2.3) |
|
|
Download Help Document
Was this information helpful?