On Thu, 2006-10-05 at 21:16 +1000, Jonathan Kelly wrote:
> Hi,
> 
> in the following code, the procedure s behaves differently on the second 
> and subsequent iterations than the first .. the cpp code looks like it's 
> turned the routine into a thread or something ... does it always do that 
> to procs?

Yes, that's the standard model: procedures can be suspended
and resumed. However the construction of their closures -- 
represented by C++ class objects with resume() methods --
is often eliminated by the optimiser.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to