<div dir="ltr">Hi list,<br><br>New here, and to ChucK in general, but I&#39;m also working on a similar collection class. Don&#39;t want to step on anyone&#39;s toes, Mike, let&#39;s talk <a href="mailto:dzinkevich@gmail.com">dzinkevich@gmail.com</a><br>
<br>DFZ<br><br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 6:29 PM, mike clemow <span dir="ltr">&lt;<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I wanted to write a class that would abstract arrays like the<br>
Collection class in SuperCollider. &nbsp;I guess I can&#39;t. &nbsp;I would have to<br>
write a class for each type of object that I wanted to make<br>
Collections of.<br>
<font color="#888888"><br>
-Mike<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Wed, Sep 3, 2008 at 5:17 PM, Kassen &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; 2008/9/3 mike clemow &lt;<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi list,<br>
&gt;&gt;<br>
&gt;&gt; Is there a way to determine an object&#39;s type programmatically?<br>
&gt;&gt;<br>
&gt;<br>
&gt; I don&#39;t think so, I thought for a moment that we could write a massively<br>
&gt; overloaded function but then remembered arrays are separate types and<br>
&gt;<br>
&gt; int foo[ ];<br>
&gt;<br>
&gt; is a different type from<br>
&gt;<br>
&gt; int bar[ ] [ ];<br>
&gt;<br>
&gt; So we&#39;d need a infinitely overloaded function...<br>
&gt;<br>
&gt; I&#39;m not sure why you could need this. I&#39;m not sure in what kind of situation<br>
&gt; you would get a object from somewhere yet be unaware of it&#39;s type; because<br>
&gt; of our strong typing I don&#39;t think we ever get such objects (which can be<br>
&gt; nice yet is related to limitations as well).<br>
&gt;<br>
&gt; Could you illustrate the issue?<br>
&gt;<br>
&gt; Yours,<br>
&gt; Kas.<br>
&gt;<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; chuck-users mailing list<br>
&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
<a href="http://semiotech.org" target="_blank">http://semiotech.org</a><br>
<a href="http://semiotech.org/michael" target="_blank">http://semiotech.org/michael</a><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>
</div></div></blockquote></div><br></div>