Supporting Structure Comparison

jmc at root44.UUCP jmc at root44.UUCP
Wed Oct 12 20:30:01 AEST 1983

I would be inclined to support ADA-like overloading of operators with
user-defined functions rather than introducing a complex data type just
so you can apply + - * / == (with all the problems of defining these
functions for complex numbers into a standard, library routines like ldiv
built into the compiler etc etc).

That would be much more difficult than squeezing in complex numbers though
I suspect.

John Collins

More information about the Comp.lang.c mailing list