On Mon, 26 Apr 2010 13:16:02 -0300, bearophile <[email protected]>
wrote:
Robert Jacques:
- Element wise *, etc are important operators that you need to cleanly
support. Design-wise, since we can't do Matlab style operators, I prefer
*/+- to be element wise,
But keep in mind in D the built-in array ops always require the [].
Bye,
bearophile
Yes, but emulating that behavior is difficult. And array ops are still
buggy and broken to the degree of not being usable. In theory you
shouldn't need to define a small vector or matrix in D: fixed size arrays
are value types, array op support and free functions as member function
support. In practice, though, we still need it.