<?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>runHooks(Symbol,Thing) -- run the hook functions stored in an object</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_run__Length__Encode_lp__Visible__List_rp.html">next</a> | <a href="_run__Hooks_lp__Hash__Table_cm__Thing_cm__Thing_rp.html">previous</a> | <a href="_run__Length__Encode_lp__Visible__List_rp.html">forward</a> | <a href="_run__Hooks_lp__Hash__Table_cm__Thing_cm__Thing_rp.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>runHooks(Symbol,Thing) -- run the hook functions stored in an object</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>runHooks(sym,arg)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_run__Hooks.html" title="run the hook functions stored in an object">runHooks</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>sym</tt>, <span>a <a href="___Symbol.html">symbol</a></span></span></li> <li><span><tt>arg</tt>, <span>a <a href="___Thing.html">thing</a></span></span></li> </ul> </div> </li> <li><div class="single">Consequences:<ul><li>each function <tt>hook</tt> in list of hooks stored in value of <tt>sym</tt> is called with <tt>arg</tt> as its argument or sequence of arguments.</li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span>If one of the functions uses <a href="_break.html" title="break from a loop">break</a> to return a value, that value will be returned. Otherwise <a href="_null.html" title="the unique member of the empty class">null</a> will be returned.</span></li> </ul> </div> </li> </ul> </div> <div><!--empty documentation body--></div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_add__Hook_lp__Symbol_cm__Function_rp.html" title="add a hook function to an object for later processing">addHook(Symbol,Function)</a> -- add a hook function to an object for later processing</span></li> <li><span><a href="_remove__Hook_lp__Symbol_cm__Function_rp.html" title="remove a hook function from an object">removeHook(Symbol,Function)</a> -- remove a hook function from an object</span></li> </ul> </div> </div> </body> </html>