Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Defining Variables and Functions > Attributes >

Stub

Stub
is an attribute which specifies that if a symbol is ever used, Needs should automatically be called on the context of the symbol.
  • A symbol is considered "used" if its name appears explicitly, not in the form of a string.
  • Names["nameform"] and Attributes["nameform"] do not constitute "uses" of a symbol.
Use of the symbol implies reading the corresponding package automatically:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Use of the symbol implies reading the corresponding package automatically:
In[3]:=
Click for copyable input
Out[3]=
Stub symbols are created in the declared context:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team