Dear list,<br><br>Shreds are objects (of type Shred) and functions aren&#39;t objects. This is all good and well but it gets harder when we spork a function and the function becomes a Shred and hence a Object. Consider this;
<br><br>------------------------<br>fun void tester()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &quot;boom&quot; =&gt; string beep;<br>&nbsp;&nbsp;&nbsp; while(1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;beep&gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; second =&gt; now;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;<br>spork ~ tester() @=&gt; Shred foo;<br>5::second =&gt; now;<br>&nbsp;&nbsp; &nbsp;<br>&quot;clik&quot; =&gt; foo.beep; //this doesn&#39;t work<br>&nbsp;&nbsp; &nbsp;<br>day=&gt; now;<br>----------------------------------------<br>
<br>It&#39;s not so clear to me *why* the offending line doesn&#39;t work. Maybe I&#39;m misunderstanding something or making a syntax error but I think that what we are seeing here is a loss of namespace that would be useful and I don&#39;t understand why this happens.
<br><br>I also tried stuff along these lines;<br><br>----------------------<br>class Bar extends Shred<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; //stuff including variables and a constructor<br>&nbsp;&nbsp;&nbsp; }<br>------------------------------<br><br>If I do that I can instantiate a &quot;Bar&quot; but all it does is run it&#39;s constructor; I can&#39;t manage to spork a Bar or assign a sporked shred to a Bar. I can also make a array of Bar&#39;s but all that gets me is the constructor running;
<br><br>---------------------------<br>class Bar extends Shred<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; static int number;<br>&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;number++&gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;<br>//print a series of numbers, no shreds in sight<br>&nbsp;Bar array[5];
<br>----------------------------------<br><br>So, now I&#39;m quite happy I said so many times that there are no &quot;stupid n00b questions&quot; because now it&#39;s my turn to ask exactly what a &quot;Shred&quot; is because I&#39;m starting to feel like I have no idea. :¬)
<br><br>Could somebody please explain to me exactly what&#39;s going on here?<br><br><br>Yours,<br>Kas.<br>