Mathematica > Core Language > Defining Variables and Functions > Attributes > Stub >

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.
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
Format:   HTML  |  CDF