[chuck-users] Are array types really classes ?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the chuck-users