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.

DetailsDetails

  • Symbols with the Stub attribute are created by DeclarePackage.
  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

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]=
Introduced in 1991
(2.0)