Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Advocacy > Re: Operator Ov...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 2407 of 2475
Post > Topic >>

Re: Operator Overloading (Was: In Praise of Strong Typing)

by ram@[EMAIL PROTECTED] (Stefan Ram) Jun 23, 2008 at 02:38 AM

Bartlomiej Golenko <bartek@[EMAIL PROTECTED]
> writes:
>> Vector operator+(const Vector &left, const Vector &right) {
>Its pure evil. Consider this:
>myNewVect = someVect * someOtherVect;

  This is not what Daniel wrote. He used »+«.

>What kind of product is it ? 
>- inner product ? 

  No. The inner product is a scalar, not a new vector as above.

>- tensor product ? 

  No. The tensor product of two vectors is a tensor, not a vector.
  (A tensor also is a vector, but of another space.)

>- cross product ?

  Possible, but unlikely, because this only is defined in certain
  vector spaces, for example, in R³, but not R4.

>- carthesian product ?

  No. There is no »carthesian product« and there is no
  »cartesian product« of vectors.

>The fact that YOU know exactly how did you overload operator* does 
>not necessarily mean everyone else does as well.

  Showing your admiration of someone by addressing him in
  uppercase (as in »hallowed be Thy name«) is not usual in
  technical newsgroups.

  Daniel used »+«. /You/ were the one who started to use »*«.
 




 7 Posts in Topic:
In Praise of Strong Typing
Roedy Green <see_websi  2008-06-22 16:53:28 
Re: In Praise of Strong Typing
Daniel Pitts <newsgrou  2008-06-22 11:21:34 
Re: In Praise of Strong Typing
Roedy Green <see_websi  2008-06-22 20:07:33 
Operator Overloading (Was: In Praise of Strong Typing)
Daniel Pitts <newsgrou  2008-06-22 15:52:00 
Re: Operator Overloading (Was: In Praise of Strong Typing)
Bartlomiej Golenko <ba  2008-06-23 02:00:06 
Re: Operator Overloading (Was: In Praise of Strong Typing)
ram@[EMAIL PROTECTED] (S  2008-06-23 02:38:59 
Re: Operator Overloading (Was: In Praise of Strong Typing)
Daniel Pitts <newsgrou  2008-06-22 21:43:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:43:31 CST 2008.