Bjarne Stroustrup, creator of C++, posed this interesting use of
overloading:

http://www2.research.att.com/~bs/whitespace98.pdf


The idea was somewhat forced upon him by ATT Labs mathematicians and
physicists who wanted:

int x,y,z;
z=xy

to function as in standard math notation as set z to x times y.

I believe the notion failed to achieve popularity due to lexical scoping of
the language, where variables might lie in entirely different bodies of
source code.  Closures were, of course considered as a way to define the
allowed scope for variables, but C++ had not implemented them.

   -- Owen
============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

Reply via email to