anames - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Operations : Assignment : anames

anames

sequence of assigned names

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

anames( );

anames( type );

anames( 'environment' );

anames( 'user' );

anames( 'alluser' );

anames( 'active' );

Parameters

type

-

expression

Description

• 

The anames command returns an expression sequence of names that are currently assigned values other than their own name.

• 

Only top-level global names are returned.  This excludes module exports and local variables.  The name of a global module itself will be included in the anames list, and can be used to find child members.

• 

When anames is called with a type, anames returns an expression sequence of names that are currently assigned values of the given type.

• 

When called with the argument environment, anames returns an expression sequence of environment variables in the active environment.

• 

When called with the argument user, anames returns an expression sequence of user-assigned names.  A user-assigned name is defined as a name that is not saved in a library, and does not contain a forward-slash ('/') or leading underscore ('_').

• 

When called with the argument alluser, anames returns the same output as anames(user) without filtering names containing a forward-slash ('/') or leading underscore ('_').

• 

When called with the argument active, anames returns all the global names that have been assigned to in the current session.

Thread Safety

• 

The anames command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

a12

a:=12

(1)

anames

unprotect,rtable_dims,infolevel,subtype,ListTools,debugger/no_output,sprintf,RandomTools,unassign,convert/list,fremove,StringTools,getenv,interface,a,ArrayTools,FileTools,filepos,protect,zip,ExternalCalling

(2)

anamesinteger

Digits,Order,printlevel

(3)

anamesenvironment

Testzero,UseHardwareFloats,Rounding,%,_ans,%%%,Digits,index/newtable,mod,%%,Order,printlevel,Normalizer,NumericEventHandlers,_Env_Plot_StandardInterface

(4)

anamesuser

a

(5)

To find assigned names with a common prefix.

test11:test22:test33.2:testall3.2:

selecttype,anames,suffixedtest

test1,test2,test3,testall

(6)

selecttype,anames,suffixedtest,posint

test1,test2,test3

(7)

selecttype,anamesinteger,suffixedtest,posint

test1,test2

(8)

See Also

assigned

environment

history

unames

 


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