Hi Kas,<br><br>I don&#39;t see what the problem is.&nbsp; You&#39;re not sporking &#39;a public&#39;; surely public is an access modifier that can apply to functions perfectly viably.&nbsp; I wouldn&#39;t expect the code you posted to be illegal, although there may be some slight redundancy.&nbsp; I haven&#39;t chucked for a while, so this could be inaccurate but I think that &#39;public&#39; there will just mean that you could run (perhaps by sporking, or not, it&#39;s somewhat irrelevant) that function from other files once that one had been loaded (and also that you couldn&#39;t redefine the function foo() until you restart the VM).&nbsp; Also, can you not spork a function that returns something, just not access the returned value?&nbsp; I don&#39;t see why not.<br>
<br>Cheers,<br>Peter<br><br><div class="gmail_quote">On Sat, Jun 7, 2008 at 11:19 AM, Kassen &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear list,<br><br>Sporking is fun and we can spork fun&#39;s (as long as they are of type &quot;void&quot;) but now ( <a href="http://electro-music.com/forum/viewtopic.php?t=26805" target="_blank">http://electro-music.com/forum/viewtopic.php?t=26805</a> ) it turns out that we can also spork a public. Considering that ChucKian legend has it &quot;spork&quot; is a slightly dirty word &quot;public sporking&quot; must be downright naughty, especially considering no class is needed. I&#39;m sorry; that was too good to pass up.<br>

=========================<br>//the following will run, not limited in the slightest by trivialities like -say- language specifications.<br><br>//note there is no class in sight<br>public void foo()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&quot;ping&quot;&gt;&gt;&gt;;<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>spork ~foo();<br><br>second =&gt; now;<br>=====================<br><br>Could somebody comment on this? Is this of any use at all? well, aside from breaking the monotony of code by having synonyms?<br><br>

Confused,<br>Kas.<br>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br>