DeclarePackage

DeclarePackage["context`",{"name1","name2",}]

declares that Needs["context`"] should automatically be executed if a symbol with any of the specified names is ever used.

Details

Examples

open allclose all

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]=

Properties & Relations  (1)

See Also

Needs  $NewSymbol  $Packages

Tutorials

Introduced in 1991
(2.0)