[998] in java-interest

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

No subject found in mail header

daemon@ATHENA.MIT.EDU (0000-Admin(0000))
Wed Aug 16 17:59:32 1995

Date: Wed, 16 Aug 1995 11:27:33 -0700
From: 0000-Admin(0000) <daemon@java.sun.com>
Apparently-To: java-interest-recipients@webrunner.neato.org

>At 08:51 15-08-95 -0700, Thomas Ball wrote:
>One thing few people have noticed is how Microsoft's Visual C++ team is
>getting away with using a subset of the language.  The MFC is probably
>one of the best Windows C++ frameworks, 

A dubious distinction at best. =)  (I really don't like MFC much)

>and they don't use any overloading
>in their 200+ classes.  

Not true.  Microsoft overloads "+" for CStrings and "[]" in several places
(CArrays, CStrings, CMaps etc.).  They also use function overloading in alot
of their constructors.  The feature that they do _not_ use is templates.
That is because their compiler did not support it until recently.

Operator overloading is nice in a few situations.  I haven't seen any abuses
(yet) though I can certainly imagine them.  It is probably not worth the
complexity to add to the compiler and the language.  Although in those cases
where it works (i.e. vectors), it works really nicely.  Perhaps a reasonable
compromise would be to allow operator overloading only of certain
mathematical operators and not of all operators.  

 Paul Prescod

----------------------------------------------------------
Paul Prescod (mailto:papresco@calum.uwaterloo.ca)

-
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