[1120] in java-interest

home help back first fref pref prev next nref lref last post

Re: Operator underloading (was: overloading of operators)

daemon@ATHENA.MIT.EDU (Louis Van Zandt)
Sat Aug 19 03:46:05 1995

Date: Fri, 18 Aug 1995 23:14:17 -0500
To: java-interest@java.sun.com
From: corfu@mcs.com (Louis Van Zandt)


Philip Gladstone wrote:

>I propose that we do some operator-underloading. The + sign is already used
>for integers and floating point. This leads to endless confusion, so I
>propose that + is reserved only for integers, and that a new operator
>("floatAdd" - if you like smalltalk syntax) or a class member function be
>defined to add floats.


Would something like this be acceptable:

+int  -int  *int  /int

+long  -long  *long  /long

+string  -string  *string  /string

+Class1  -Class1  *Class1  /Class1

etc....




Louis Van Zandt
Corfu Software
264 Walnut Lane
Oak Brook, IL 60521
Phone: (708) 279-6686
E-mail: corfu@mcs.com
http://www.mcs.com/~corfu/


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post