Re: Can overloaded '+' return an array? If so, how?




PeterSShenkin wrote:
PeterSShenkin wrote:
Thus, if the inability of an overloaded '+' to always return a scalar
was a conscious decision, I believe it was the wrong one. What if you
want to add two arrays?

Whoops.... of course I meant "to only return a scalar...."


Whoops.. sigh. "if the inability of an overloaded '+' to return
anything but
a scalar was a conscious decision, I believe it was the wrong one."

I'll shut up now. :-)

-P.

.