Sophie

Sophie

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

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>GlobalReleaseHook</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_graded_spmodules.html">next</a> | <a href="_global__Release__Function.html">previous</a> | <a href="_graded_spmodules.html">forward</a> | <a href="_global__Release__Function.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>GlobalReleaseHook</h1>
<div class="single"><h2>Description</h2>
<div><tt>GlobalReleaseHook</tt> -- a method name that is consulted when an assignment to a global variable is about to occur.<p/>
The method should be a function of two variables: the symbol to which a value is being assigned, and the old value about to be overwritten.  The method should be stored under the name <tt>GlobalReleaseHook</tt> in the class of the old value.  It is executed before the assignment occurs, and before the execution of <a href="___Global__Assign__Hook.html" title="hook for assignment to global variables">GlobalAssignHook</a>.<p/>
<table class="examples"><tr><td><pre>i1 : RR.GlobalReleaseHook = (sym,val) -> &lt;&lt; concatenate (
          "assigning ", toString val, " to ", toString sym
          ) &lt;&lt; endl

o1 = {*Function[stdio:1:33-3:10]*}

o1 : FunctionClosure</pre>
</td></tr>
<tr><td><pre>i2 : a=4.5

o2 = 4.5

o2 : RR (of precision 53)</pre>
</td></tr>
<tr><td><pre>i3 : a=5.4
assigning 4.5 to a

o3 = 5.4

o3 : RR (of precision 53)</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="___Global__Assign__Hook.html" title="hook for assignment to global variables">GlobalAssignHook</a> -- hook for assignment to global variables</span></li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Global__Release__Hook.html" title="">GlobalReleaseHook</a> is <span>a <a href="___Symbol.html">symbol</a></span>.</p>
</div>
</div>
</body>
</html>