No, Java has the class member and instanceof operator, which would take care of this problem. These are missing in ChucK.<div><br></div><div>/Stefan<br><br><div class="gmail_quote">On Sat, Sep 4, 2010 at 6:12 PM, Hans Aberg <span dir="ltr"><<a href="mailto:haberg-1@telia.com">haberg-1@telia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 4 Sep 2010, at 17:46, Kassen wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It is not having a type system that is causing problems, but that it often is a bit underdeveloped.<br>
<br>
Yes, and malnourished. >:-)<br>
<br>
For example, if one wants dynamic typing, that can be done by having a type by which the other types can be derived dynamically. Then the problems like the one above cane be done by introducing a new type.<br>
<br>
We can do that for  non-primitives, but we can't ask a given object "Hey, what's your type?". Exactly that is high on my wishlist.<br>
</blockquote>
<br></div></div>
That may already have it by its implementation. When looking into the sources, I think I saw a base class object from which all others were derived. If so, it is the Java grammar imposed on top that restricts it.<div><div>
</div><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">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><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>