This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Attributes  /

  • Stub is an attribute which specifies that if a symbol is ever used, Needs should automatically be called on the context of the symbol.
  • 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.
  • See the Mathematica book: Section 2.5.3Section 2.6.11.