Re: overloading, was Looking for volunteers for XL

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Fri, 2 Dec 2011 05:36:40 +0000 (UTC)

          From comp.compilers

Related articles
[2 earlier articles]
Re: Looking for volunteers for XL bc@freeuk.com (BartC) (2011-11-26)
Re: Looking for volunteers for XL christophe@taodyne.com (Christophe de Dinechin) (2011-11-27)
Re: Looking for volunteers for XL bc@freeuk.com (BartC) (2011-11-27)
Re: Looking for volunteers for XL christophe@taodyne.com (Christophe de Dinechin) (2011-11-28)
Re: Looking for volunteers for XL jussi.santti@ard.fi (ardjussi) (2011-11-30)
Re: Looking for volunteers for XL kaz@kylheku.com (Kaz Kylheku) (2011-12-01)
Re: overloading, was Looking for volunteers for XL gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-12-02)
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: Fri, 2 Dec 2011 05:36:40 +0000 (UTC)
Organization: Aioe.org NNTP Server
References: 11-11-048 11-11-053 11-11-054 11-11-058 11-11-060 11-11-067 11-11-070 11-12-003
Keywords: types, design
Posted-Date: 02 Dec 2011 11:27:14 EST

Kaz Kylheku <kaz@kylheku.com> wrote:


(snip)
> Overloading is any situation in which a symbol has more than one
> meaning, resolved by context, such as the class of some argument. It
> is "loaded up" with two or more meanings, hence "overloaded".


While this is true, I think people tend not to think of it
as overloading when the operations are similar, such as fixed
point and floating point addition.


There have been complaints about Java, which claims not to have
operator overloading, and then uses the + operator for String
concatenation.


Lots of fun is you do things like:


int i=3;
System.out.println(i+i+"="+i+i);


-- glen


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.