<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Parrot - Continuation PMC</title> <link rel="stylesheet" type="text/css" href="../../../resources/parrot.css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="http://www.parrot.org"> <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot"> </a> </div> <!-- "header" --> <div id="divider"></div> <div id="mainbody"> <div id="breadcrumb"> <a href="../../../html/index.html">Home</a> » <a href="../../../html/pmc.html">PMCs</a> » Continuation PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/continuation.pmc - Continuation PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>A <code>Continuation</code> has a copy of the interpreter's context at the location where the Continuation was constructed. See the <a href='TODO#glossary.pod'>Glossary</a> for more information.</p> <h2><a name="Functions" >Functions</a></h2> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="void_init()" ><b><code>void init()</b></code></a></dt> Initializes the continuation. <dt><a name="void_mark()" ><b><code>void mark()</b></code></a></dt> Marks the continuation as live. <dt><a name="PMC_*clone()" ><b><code>PMC *clone()</b></code></a></dt> Creates and returns a clone of the continuation. <dt><a name="PMC_*set_pmc()" ><b><code>PMC *set_pmc()</b></code></a></dt> Assign context. <dt><a name="void_set_pointer(void_*value)" ><b><code>void set_pointer(void *value)</b></code></a></dt> Sets the pointer to the return instruction. Also captures the descriptor address for any returned values. <dt><a name="void_*get_pointer()" ><b><code>void *get_pointer()</b></code></a></dt> Returns the pointer to the return instruction. <dt><a name="INTVAL_defined()" ><b><code>INTVAL defined()</b></code></a></dt> <dt><a name="INTVAL_get_bool()" ><b><code>INTVAL get_bool()</b></code></a></dt> Returns whether the subroutine is defined. <dt><a name="opcode_t_*invoke(void_*next)" ><b><code>opcode_t *invoke(void *next)</b></code></a></dt> Restores the context of the interpreter and returns the branch destination to continue execution. <dt><a name="STRING_*get_string()" ><b><code>STRING *get_string()</b></code></a></dt> Experimental: return caller info as a STRING. <dt><a name="PMC_*caller()" ><b><code>PMC *caller()</b></code></a></dt> Experimental: return caller PMC or PMCNULL if none. <dt><a name="PMC_*continuation()" ><b><code>PMC *continuation()</b></code></a></dt> Experimental: return continuation PMC of this Continuation or PMCNULL if none.</dl> <h1><a name="HISTORY" >HISTORY</a></h1> <p>Initial revision by sean 2002/08/04.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2009, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>