Hi all,<br>&nbsp;<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Couldn&#39;t find this one in the manual. &nbsp;Where do sporked funcitons<br>
return to? &nbsp;How do I get the return value of a spoked function?<br>
</blockquote></div><div><br>they don&#39;t and you won&#39;t, I fear..... (or shred-heaven, depending on your persuasion)<br></div></div></blockquote><div><br>Shred-heaven would have been my assumption, but it doesn&#39;t appear to be the case, and it does make a difference..... at the moment, it appears that if you run<br>
<br>// &lt;chuck&gt;<br>int addThree(int i){<br>&nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;adding three...&quot; &gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp; return i + 3;<br>}<br><br>&lt;&lt;&lt; &quot;about to spork...&quot; &gt;&gt;&gt;;<br>spork ~ addThree(2);<br>
&lt;&lt;&lt; &quot;sporked&quot; &gt;&gt;&gt;;<br>// &lt;/chuck&gt;<br><br>then you get neither an error, nor the message &quot;adding three...&quot;; but you do get the other two messages.&nbsp; So, say the main purpose of the function was to do a load of other stuff, and the return value was just there for conveniance, or to return any error code perhaps (and you didn&#39;t expect to be able to read it in the context of sporking the function)... you get some rather unexpected behaviour, it seems to me.<br>
<br>Regards,<br>Peter<br></div></div>