<?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>end -- stop loading a file</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_endl.html">next</a> | <a href="___End.html">previous</a> | <a href="_endl.html">forward</a> | <a href="___End.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>end -- stop loading a file</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>end</tt></div> </dd></dl> </div> </li> <li><div class="single">Consequences:<ul><li>This symbol, encountered at top level, causes loading of the current input file to be stopped.</li> <li>Alternatively, in the debugger it causes the current code to be abandoned, and the debugger to be re-entered one level further up. If there are no more suspended levels of execution, then control is returned to the top level.</li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><table class="examples"><tr><td><pre>i1 : load "Macaulay2Doc/demo3.m2" hi</pre> </td></tr> <tr><td><pre>i2 : get loadedFiles#(#loadedFiles-1) o2 = print hi end print ho</pre> </td></tr> </table> <p>Here is an example of its use in the debugger.</p> <table class="examples"><tr><td><pre>i3 : load "Macaulay2Doc/demo1.m2"</pre> </td></tr> <tr><td><pre>i4 : g 2 /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: error: division by zero /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: --entering debugger (type help to see debugger commands) /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:11-8:13: --source code: b := 1/x;</pre> </td></tr> <tr><td><pre>ii5 : end /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:13:11:(3):[1]: --entering debugger (type help to see debugger commands) /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:13:11-13:15: --source code: d := f(y-2);</pre> </td></tr> <tr><td><pre>ii6 : end</pre> </td></tr> <tr><td><pre>i7 : g 3 7 o7 = - 2 o7 : QQ</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_needs.html" title="read Macaulay2 commands if necessary">needs</a> -- read Macaulay2 commands if necessary</span></li> <li><span><a href="_load.html" title="read Macaulay2 commands">load</a> -- read Macaulay2 commands</span></li> <li><span><a href="_input.html" title="read Macaulay2 commands and echo">input</a> -- read Macaulay2 commands and echo</span></li> </ul> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="_end.html" title="stop loading a file">end</a> is <span>a <a href="___Symbol.html">symbol</a></span>.</p> </div> </div> </body> </html>