next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > packages > dismiss

dismiss -- dismiss a package

Synopsis

Description

The package itself is still accessible under its name in the PackageDictionary, and its exported symbols can be made available again with use.

i1 : newPackage "PKG"

o1 = PKG

o1 : Package
i2 : export "x1"

o2 = {x1}

o2 : List
i3 : x1=3

o3 = 3
i4 : endPackage "PKG"

o4 = PKG

o4 : Package
i5 : dictionaryPath

o5 = {PKG.Dictionary, SimpleDoc.Dictionary, InverseSystems.Dictionary,
     ------------------------------------------------------------------------
     ConwayPolynomials.Dictionary, ReesAlgebra.Dictionary,
     ------------------------------------------------------------------------
     TangentCone.Dictionary, Classic.Dictionary, Saturation.Dictionary,
     ------------------------------------------------------------------------
     Elimination.Dictionary, MinimalPrimes.Dictionary,
     ------------------------------------------------------------------------
     PrimaryDecomposition.Dictionary, IntegralClosure.Dictionary,
     ------------------------------------------------------------------------
     LLLBases.Dictionary, User#"private dictionary", User.Dictionary,
     ------------------------------------------------------------------------
     Core.Dictionary, OutputDictionary, PackageDictionary}

o5 : List
i6 : x1

o6 = 3
i7 : dismiss PKG

o7 = PKG

o7 : Package
i8 : dictionaryPath

o8 = {SimpleDoc.Dictionary, InverseSystems.Dictionary,
     ------------------------------------------------------------------------
     ConwayPolynomials.Dictionary, ReesAlgebra.Dictionary,
     ------------------------------------------------------------------------
     TangentCone.Dictionary, Classic.Dictionary, Saturation.Dictionary,
     ------------------------------------------------------------------------
     Elimination.Dictionary, MinimalPrimes.Dictionary,
     ------------------------------------------------------------------------
     PrimaryDecomposition.Dictionary, IntegralClosure.Dictionary,
     ------------------------------------------------------------------------
     LLLBases.Dictionary, User#"private dictionary", User.Dictionary,
     ------------------------------------------------------------------------
     Core.Dictionary, OutputDictionary, PackageDictionary}

o8 : List
i9 : x1

o9 = x1

o9 : Symbol
i10 : values PackageDictionary

o10 = {PrimaryDecomposition, SimpleDoc, PrimaryDecomposition, SimpleDoc,
      -----------------------------------------------------------------------
      Text, Text, IntegralClosure, Parsing, IntegralClosure,
      -----------------------------------------------------------------------
      ConwayPolynomials, Parsing, ConwayPolynomials, LLLBases, LLLBases,
      -----------------------------------------------------------------------
      Elimination, ReesAlgebra, Elimination, TangentCone, ReesAlgebra,
      -----------------------------------------------------------------------
      TangentCone, User, PKG, PKG, Saturation, InverseSystems, Classic,
      -----------------------------------------------------------------------
      Saturation, InverseSystems, Classic, MinimalPrimes, MinimalPrimes,
      -----------------------------------------------------------------------
      Core, Core}

o10 : List
i11 : use PKG

o11 = PKG

o11 : Package
i12 : x1

o12 = 3

See also

Ways to use dismiss :

For the programmer

The object dismiss is a method function.