~ubuntu-branches/ubuntu/gutsy/acl2/gutsy

« back to all changes in this revision

Viewing changes to doc/HTML/PKG-WITNESS.html

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2006-12-04 10:35:42 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061204103542-68nf4pkilci0018n
Tags: 3.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html>
2
 
<head><title>PKG-WITNESS.html  --  ACL2 Version 3.0.1</title></head>
 
2
<head><title>PKG-WITNESS.html  --  ACL2 Version 3.1</title></head>
3
3
<body text=#000000 bgcolor="#FFFFFF">
4
4
<h2>PKG-WITNESS</h2>return a specific symbol in the indicated package
5
5
<pre>Major Section:  <a href="PROGRAMMING.html">PROGRAMMING</a>
6
6
</pre><p>
7
7
 
8
8
For any string <code>pkg</code> that names a package currently known to ACL2,
9
 
<code>(pkg-witness pkg)</code> evaluates to a symbol in that package whose
10
 
<code><a href="SYMBOL-NAME.html">symbol-name</a></code> is the value of constant <code>*pkg-witness-name*</code>.
 
9
<code>(pkg-witness pkg)</code> is a symbol in that package whose <code><a href="SYMBOL-NAME.html">symbol-name</a></code> is
 
10
the value of constant <code>*pkg-witness-name*</code>.  Logically, this is the case
 
11
even if the package is not currently known to ACL2.  However, if
 
12
<code>pkg-witness</code> is called on a string that is not the name of a package known
 
13
to ACL2, a hard Lisp error will result.
11
14
<p>
12
 
<code>(Pkg-witness pkg)</code> has a guard of <code>(stringp pkg)</code>.  However, if
13
 
<code>pkg-witness</code> is called on an argument that is not the name of a package
14
 
known to ACL2, a hard Lisp error will result.
 
15
<code>(Pkg-witness pkg)</code> has a guard of
 
16
<code>(and (stringp pkg) (not (equal pkg "")))</code>.  If <code>pkg</code> is not a string,
 
17
then <code>(pkg-witness pkg)</code> is equal to <code>(pkg-witness "ACL2")</code>
15
18
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
16
19
</body>
17
20
</html>