illegal use of an object as a name - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : illegal use of an object as a name

Error, illegal use of an object as a name

 

Description

Examples

Description

This error occurs when an object that is not a name is used where Maple expects a name.  This will occur when you make an assignment (using :=) and the left-hand side is not an assignable object or a sequence of assignable objects.  The same issue occurs when you use a nonassignable object as an index variable or in another place where a name is expected.

Examples

Example 1

Error, illegal use of an object as a name

The problem is that the left-hand side is a list.  It must be a name or a sequence of names.

Solution:  To make multiple assignments, use two assignment statements or put a sequence of names on the left-hand side.

(2.1)

Example 2

Error, illegal use of an object as a name

Error, illegal use of an object as a name

 is used to denote the imaginary unit () in Maple.  You cannot assign to this name or use it for an index variable.

Solution:  Use a different name.

(2.2)

(2.3)

Example 3

(2.4)

Error, illegal use of an object as a name

In this procedure, the evaln modifier expects a parameter that evaluates to a name.

Solution: Call the myProcedure with a parameter that is assignable.

(2.5)

(2.6)

See Also

argument processing

assignment

evaln

I

name

parameter modifiers

type/assignable


Download Help Document