next | previous | forward | backward | up | top | index | toc | home

endPackage(String) -- end a new package

Synopsis

Description

A package writer need not call this function explicitly, since the end of file hook for the file containing the newPackage command that opened the package will call endPackage.
i1 : newPackage "Foo"

o1 = Foo

o1 : Package
i2 : export abc
i3 : abc = 3

o3 = 3
i4 : dictionaryPath

o4 = {Elimination.Dictionary, LLLBases.Dictionary,
     ------------------------------------------------------------------------
     IntegralClosure.Dictionary, PrimaryDecomposition.Dictionary,
     ------------------------------------------------------------------------
     Classic.Dictionary, SchurRings.Dictionary, TangentCone.Dictionary,
     ------------------------------------------------------------------------
     Parsing.Dictionary, Foo#"private dictionary", Core.Dictionary,
     ------------------------------------------------------------------------
     OutputDictionary, PackageDictionary}

o4 : List
i5 : endPackage "Foo"

o5 = Foo

o5 : Package
i6 : peek oo

o6 = Package{configuration file name => null                                            }
             Dictionary => Foo.Dictionary
             example inputs => MutableHashTable{}
             example results => MutableHashTable{}
             exported mutable symbols => {}
             exported symbols => {abc}
             Options => OptionTable{Authors => {}                                }
                                    AuxiliaryFiles => false
                                    Configuration => {}
                                    Date => 
                                    DebuggingMode => false
                                    Headline => 
                                    HomePage => 
                                    InfoDirSection => Macaulay 2 and its packages
                                    Version => 0.0
             package prefix => null
             private dictionary => Foo#"private dictionary"
             processed documentation => MutableHashTable{}
             raw documentation => MutableHashTable{}
             source directory => /builddir/build/BUILD/Macaulay2-1.1/Macaulay2/packages/
             source file => stdio
             test inputs => MutableHashTable{}
             test number => 0
             title => Foo
             undocumented keys => MutableHashTable{}
i7 : dictionaryPath

o7 = {Foo.Dictionary, Elimination.Dictionary, LLLBases.Dictionary,
     ------------------------------------------------------------------------
     IntegralClosure.Dictionary, PrimaryDecomposition.Dictionary,
     ------------------------------------------------------------------------
     Classic.Dictionary, SchurRings.Dictionary, TangentCone.Dictionary,
     ------------------------------------------------------------------------
     Parsing.Dictionary, User#"private dictionary", Core.Dictionary,
     ------------------------------------------------------------------------
     OutputDictionary, PackageDictionary}

o7 : List
i8 : abc

o8 = 3