[chuck-users] "Or"

Stefan Blixt stefan.blixt at gmail.com
Sat Sep 4 12:33:30 EDT 2010


No, Java has the class member and instanceof operator, which would take care
of this problem. These are missing in ChucK.

/Stefan

On Sat, Sep 4, 2010 at 6:12 PM, Hans Aberg <haberg-1 at telia.com> wrote:

> On 4 Sep 2010, at 17:46, Kassen wrote:
>
>  It is not having a type system that is causing problems, but that it often
>> is a bit underdeveloped.
>>
>> Yes, and malnourished. >:-)
>>
>> 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.
>>
>> 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.
>>
>
> 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.
>
>
>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>



-- 
Release me, insect, or I will destroy the Cosmos!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100904/a1d27f55/attachment.html>


More information about the chuck-users mailing list