<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Return statement - Page 23 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Return_statement&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Return_statement&amp;p=24">3.Next</a>
</p>
<p>where a return causes a subroutine to terminate, a yield causes a <a href="page.php?w=coroutine">''co''routine</a> to suspend. The coroutine will later continue from where it suspended if it is called again. Coroutines are significantly more involved to implement than subroutines, and thus yield statements are less common than return statements, but they are found in a number of languages.</p>

<p><big>Call/return sequences</big></p>
<p>A number of call/return sequences are possible depending on the hardware instruction set, such as the following:<br/>
#</p><p>
<a accesskey="1" href="page.php?w=Return_statement&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Return_statement&amp;p=24">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
