[chuck-users] Are array types really classes ?

Kassen signal.automatique at gmail.com
Wed Sep 2 20:19:29 EDT 2009


> Seems more likely that foo has-a float[] rather than foo is-a float[].
>  I'm curious, what would you want to extend a float[] for?
>
>
Probably stuff like sorting, removing duplicates, etc.

We can't BTW. Arrays are indeed objects (you can for example assign them)
but they might not really be classes as such. I'm really not sure there, it
seems like arrays are more or less a construct on their own that gets
applied to a given class. The "concept of array" doesn't seem to have a name
beyond being hinted at by using square brackets in ChucK. I'm not sure how
it should be extended, syntactically, but I could see uses to that.

Here be dragons, let's first sort out the issues of the type system
(particularly as it applies to arrays), then look onwards.

Yours,
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20090903/031bff00/attachment.html>


More information about the chuck-users mailing list