<div dir="ltr">Hi list,<br><br>New here, and to ChucK in general, but I'm also working on a similar collection class. Don't want to step on anyone's toes, Mike, let'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"><<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>></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. I guess I can't. 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 <<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>> wrote:<br>
><br>
><br>
> 2008/9/3 mike clemow <<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>><br>
>><br>
>> Hi list,<br>
>><br>
>> Is there a way to determine an object's type programmatically?<br>
>><br>
><br>
> I don't think so, I thought for a moment that we could write a massively<br>
> overloaded function but then remembered arrays are separate types and<br>
><br>
> int foo[ ];<br>
><br>
> is a different type from<br>
><br>
> int bar[ ] [ ];<br>
><br>
> So we'd need a infinitely overloaded function...<br>
><br>
> I'm not sure why you could need this. I'm not sure in what kind of situation<br>
> you would get a object from somewhere yet be unaware of it's type; because<br>
> of our strong typing I don't think we ever get such objects (which can be<br>
> nice yet is related to limitations as well).<br>
><br>
> Could you illustrate the issue?<br>
><br>
> Yours,<br>
> Kas.<br>
><br>
</div></div><div><div></div><div class="Wj3C7c">> _______________________________________________<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>
><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>