Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4301

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>endPackage(String) -- end a new package</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Engine.html">next</a> | <a href="_endl.html">previous</a> | <a href="___Engine.html">forward</a> | <a href="_endl.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>endPackage(String) -- end a new package</h1>
<div class="single"><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>endPackage pkgname</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_end__Package_lp__String_rp.html" title="end a new package">endPackage</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>pkgname</tt>, <span>a <a href="___String.html">string</a></span>, the name of the package</span></li>
</ul>
</div>
</li>
<li><div class="single">Consequences:<ul><li>The package named should have been opened with <a href="_new__Package_lp__String_rp.html" title="package item: start a new package">newPackage</a>.  The package is closed, and the former value of <a href="_dictionary__Path.html" title="">dictionaryPath</a> is restored, with the global dictionary (containing the exported symbols) of the package prepended.</li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___Package.html">package</a></span>, the new package</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>A package writer need not call this function explicitly, since the end of file hook for the file containing the <a href="_new__Package_lp__String_rp.html" title="package item: start a new package">newPackage</a> command that opened the package will call <a href="_end__Package_lp__String_rp.html" title="end a new package">endPackage</a>.<table class="examples"><tr><td><pre>i1 : newPackage "Foo"

o1 = Foo

o1 : Package</pre>
</td></tr>
<tr><td><pre>i2 : export abc

o2 = {abc}

o2 : List</pre>
</td></tr>
<tr><td><pre>i3 : abc = 3

o3 = 3</pre>
</td></tr>
<tr><td><pre>i4 : dictionaryPath

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

o4 : List</pre>
</td></tr>
<tr><td><pre>i5 : endPackage "Foo"

o5 = Foo

o5 : Package</pre>
</td></tr>
<tr><td><pre>i6 : peek oo

o6 = Package{configuration file name => null                                                                                      }
             Dictionary => Foo.Dictionary
             example inputs => MutableHashTable{}
             example results => MutableHashTable{}
             exported mutable symbols => {}
             exported symbols => {abc}
             index.html => /builddir/build/BUILD/Macaulay2-1.3.1-r10737/StagingArea/common/share/doc/Macaulay2/Foo/html/index.html
             loadDepth => 3
             Options => OptionTable{Authors => {}                               }
                                    AuxiliaryFiles => false
                                    CacheExampleOutput => null
                                    Certification => null
                                    Configuration => {}
                                    Date => null
                                    DebuggingMode => false
                                    Headline => null
                                    HomePage => null
                                    InfoDirSection => Macaulay2 and its packages
                                    Version => 0.0
             package prefix => /builddir/build/BUILD/Macaulay2-1.3.1-r10737/StagingArea/
             private dictionary => Foo#"private dictionary"
             processed documentation => MutableHashTable{}
             raw documentation => MutableHashTable{}
             source directory => /tmp/M2-25461-120-rundir/
             source file => stdio
             test inputs => MutableHashTable{}
             test number => 0
             title => Foo
             undocumented keys => MutableHashTable{}</pre>
</td></tr>
<tr><td><pre>i7 : dictionaryPath

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

o7 : List</pre>
</td></tr>
<tr><td><pre>i8 : abc

o8 = 3</pre>
</td></tr>
</table>
</div>
</div>
</div>
</body>
</html>