Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!pasteur!ic.Berkeley.EDU!faustus From: faustus@ic.Berkeley.EDU (Wayne A. Christopher) Newsgroups: comp.lang.c++ Subject: Re: Operator overloading harmful (good criticism, bad example) Message-ID: <132@pasteur.Berkeley.Edu> Date: 12 Jan 88 21:44:56 GMT References: <250@vsi1.UUCP> <240@vsi1.UUCP> <7607@alice.UUCP> Sender: news@pasteur.Berkeley.Edu Lines: 7 You just have to make sure that whenever you use operator overloading, the operators do The Right Thing. Don't use `+' unless the operation you're doing is some form of addition (matrix, complex, etc), and is the obvious way to add things of the arguments' types. It's a matter of common sense... Wayne