Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > cd14cddf3b3ceaf1193157472227757a > files > 329

parrot-doc-1.6.0-1mdv2010.0.i586.rpm

<!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  - Return Continuation</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> &raquo; <a href="../../../html/pmc.html">PMCs</a> &raquo; Return Continuation
                </div>

<h1><a name="NAME"
>NAME</a></h1>

<p>src/pmc/retcontinuation.pmc &#45; Return Continuation</p>

<h1><a name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><code>RetContinuation</code> extends <code>Continuation</code>.</p>

<p>A return continuation is a one shot Continuation.
It gets recycled immediately after invocation.</p>

<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="PMC_*clone"
><b><code>PMC *clone</b></code></a></dt>
Return a new Continuation PMC with the context of SELF.
Note: the returned object is not a RetContinuation and creating a real Continuation invalidates all RetContinuation all the way up the call chain.
That is,
these can&#39;t be recycled; they persist until the GC gets at them.
<dt><a name="opcode_t_*invoke(void_*next)"
><b><code>opcode_t *invoke(void *next)</b></code></a></dt>
Transfers control to the calling context and frees the current context.</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 &copy; 2002-2009, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>