<br><div class="gmail_quote"><span dir="ltr">Cyrille;<br><br></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Very simple things like (algebraic) vectors, list of probabilities, etc. Of<br>
course I can always make classes that contain just a vector and duplicate<br>
every needed member functions and operators of float[], but that feels a bit<br>
silly .<br>
<br></blockquote><div><br>Wouldn't writing a Vector class, then creating a array of those come down to this?<br><br>Vector my-vectors[8];<br><br>Would do the trick, assuming you wrote the "Vector" class. That will get you everything that float[] has, I think, at least everything that "float[]" has that "float" lacks.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Moreover, unless there is some way of writing an implicit reference cast<br>
operator from foo to float[] (again, excuse this possibly trivial question, I<br>
am learning), I won't be able to use existing functions that take array<br>
references as parameters directly on foo (I will have to pass the member<br>
foo.content or trivially overload all of them).<br></blockquote><div><br>We don't have operator overloading right now. At least you can't overload them yourself; of course the ChucK operator is quite overloaded. I'd still like to have overloading of the ChucK operator for classes we write ourselves (probably cast as well). Right now they can't be chucked to other objects to yield values or form connections, etc. This seems a bit unnatural to me; basically everything but the stuff we create can be chucked to things while -hopefully- the things we just created are very important to the domain we are reasoning about.<br>
<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes I am lazy :)<br>
<div><br></div></blockquote><div><br>A comendable property for a programmer, I hear :-). <br></div></div><br>Good questions.<br><br>Yours,<br>Kas.<br>