Operator overloading

Adriaan van Os gpc at microbizz.nl
Wed Apr 2 16:43:42 CEST 2003

Frank D. Engel, Jr. wrote:

>> Actually, overloading of unary operators might be a good idea
>> (leaving apart the rest of the joke :)
> Sure, then we can do negation with '+' and square root with '-'!
> (another joke, but seriously, if we allow overloading of binary
> operators, then why not unary ones...  but I hardly think overloading
> the ';' operator is reasonable.  There IS a limit.)

The semicolon is not an operator. That was part of the joke.


Adriaan van Os

More information about the Gpc mailing list