Personal dialects and C++ overloading
brnstnd at stealth.acf.nyu.edu
brnstnd at stealth.acf.nyu.edu
Thu Feb 8 11:17:59 AEST 1990
In article <4152 at helios.TAMU.EDU> john at stat.tamu.edu (John S. Price) writes:
> No, no, no. Operator overloading in C++ is used to abstract what
> the '+' operator does to a user-defined class.
This Ada (and, by imitation, Fortran 90 and C++) misfeature makes
program maintenance a nightmare. The problem isn't just that it's a pain
to locate the routine that adds a GLORP to a FOOBIEBLETCH. The problem
is that you won't even notice the nonstandard usage until it's too late.
Overloading saves typing time. It has no other advantages. (Is it an
advantage to be able to code without thinking and make undetectable
syntax errors?)
---Dan
More information about the Comp.lang.c
mailing list