This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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