Sophie

Sophie

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

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>Command -- the class of all commands</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_command__Interpreter.html">next</a> | <a href="_column__Swap.html">previous</a> | <a href="_command__Interpreter.html">forward</a> | <a href="_column__Swap.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>Command -- the class of all commands</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>Command g</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>g</tt>, a function or a string</span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span>a new command that will evaluate <tt>g()</tt> if <tt>g</tt> is a function, and will evaluate <tt>run g</tt> if <tt>g</tt> is a string</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>A command behaves as a function does if it is followed by an adjacent expression that can serve as its argument or argument list.  In addition, if it appears as the value of an expression typed by the user at top level (i.e., not in a file), then it gets executed with empty argument list.<table class="examples"><tr><td><pre>i1 : (f = Command ( () -> 2^30 );)</pre>
</td></tr>
<tr><td><pre>i2 : f

o2 = 1073741824</pre>
</td></tr>
<tr><td><pre>i3 : (c = Command "date";)</pre>
</td></tr>
<tr><td><pre>i4 : c
Tue Feb  8 00:10:48 UTC 2011

o4 = 0</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_run.html" title="run an external command">run</a> -- run an external command</span></li>
<li><span><a href="___After__Eval.html" title="top level method applied after evaluation">AfterEval</a> -- top level method applied after evaluation</span></li>
</ul>
</div>
<div class="waystouse"><h2>Methods that use a command :</h2>
<ul><li>Command Thing</li>
<li><span>methodOptions(Command), see <span><a href="_method__Options_lp__Function_rp.html" title="recover the options used when a method function was created">methodOptions(Function)</a> -- recover the options used when a method function was created</span></span></li>
<li><span>methods(Command), see <span><a href="_methods.html" title="list methods">methods</a> -- list methods</span></span></li>
<li><span>options(Command), see <span><a href="_options_lp__Function_rp.html" title="get optional arguments and default values for a function that accepts them">options(Function)</a> -- get optional arguments and default values for a function that accepts them</span></span></li>
<li><span>Command \\ Thing, see <span><a href="___Thing_sp_sl_sl_sp__Function.html" title="apply a function">Thing // Function</a> -- apply a function</span></span></li>
<li><span>Thing // Command, see <span><a href="___Thing_sp_sl_sl_sp__Function.html" title="apply a function">Thing // Function</a> -- apply a function</span></span></li>
<li><span>Command \ Tally, see <span><a href="___Visible__List_sp_sl_sp__Function.html" title="apply a function to elements of a list">VisibleList / Function</a> -- apply a function to elements of a list</span></span></li>
<li><span>Command \ VisibleList, see <span><a href="___Visible__List_sp_sl_sp__Function.html" title="apply a function to elements of a list">VisibleList / Function</a> -- apply a function to elements of a list</span></span></li>
<li><span>List / Command, see <span><a href="___Visible__List_sp_sl_sp__Function.html" title="apply a function to elements of a list">VisibleList / Function</a> -- apply a function to elements of a list</span></span></li>
<li><span>Tally / Command, see <span><a href="___Visible__List_sp_sl_sp__Function.html" title="apply a function to elements of a list">VisibleList / Function</a> -- apply a function to elements of a list</span></span></li>
<li><span>VisibleList / Command, see <span><a href="___Visible__List_sp_sl_sp__Function.html" title="apply a function to elements of a list">VisibleList / Function</a> -- apply a function to elements of a list</span></span></li>
</ul>
<h2>Fixed objects of class Command :</h2>
<ul><li><span><a href="_clear__All.html" title="forget everything">clearAll</a> -- forget everything</span></li>
<li><span><a href="_clear__Output.html" title="forget output values">clearOutput</a> -- forget output values</span></li>
<li><span><a href="_edit.html" title="edit source code">edit</a> -- edit source code</span></li>
<li><span><a href="_exit.html" title="exit the program">exit</a> -- exit the program</span></li>
<li><span><a href="_help.html" title="help command">help</a> -- help command</span></li>
<li><span><a href="_list__Local__Symbols.html" title="display of local symbols and their values">listLocalSymbols</a> -- display of local symbols and their values</span></li>
<li><span><a href="_list__User__Symbols.html" title="display the user's symbols">listUserSymbols</a> -- display the user's symbols</span></li>
<li><span><a href="_profile__Summary.html" title="display profiling data">profileSummary</a> -- display profiling data</span></li>
<li><span><a href="_quit.html" title="quit the program">quit</a> -- quit the program</span></li>
<li><span><a href="_restart.html" title="restart Macaulay2">restart</a> -- restart Macaulay2</span></li>
<li><span><a href="_show__Class__Structure.html" title="display class structure">showClassStructure</a> -- display class structure</span></li>
<li><span><a href="_show__Structure.html" title="display parent structure">showStructure</a> -- display parent structure</span></li>
<li><span><a href="_show__User__Structure.html" title="show parent structure for those types defined by user">showUserStructure</a> -- show parent structure for those types defined by user</span></li>
<li><span><a href="_view__Help.html" title="view online doc with a web browser">viewHelp</a> -- view online doc with a web browser</span></li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Command.html" title="the class of all commands">Command</a> is <span>a <a href="___Self__Initializing__Type.html">self initializing type</a></span>, with ancestor classes <a href="___Basic__List.html" title="the class of all basic lists">BasicList</a> &lt; <a href="___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>