From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,1042f393323e22da X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,1042f393323e22da X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,1042f393323e22da X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: Any research putting c above ada? Date: 1997/04/26 Message-ID: <01bc526e$4d178b00$28f982c1@xhv46.dial.pipex.com>#1/1 X-Deja-AN: 237558962 References: <5ih6i9$oct$1@waldorf.csc.calpoly.edu> <5j31lj$qnk@huron.eel.ufl.edu> <335F9D0E.41C67EA6@cacd.rockwell.com> <5jr4ak$dsm@bcrkh13.bnr.ca> <336148DD.4BC0@mindspring.com> Organization: UUNet PIPEX server (post doesn't reflect views of UUNet PIPEX) Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.ada Date: 1997-04-26T00:00:00+00:00 List-Id: Larry Wissig wrote in article <336148DD.4BC0@mindspring.com>... > [critique of overloading by previous poster] > > Definitely religious. Overloading functions of the same name with diff > types little different in effect (albiet less effort) than generating > unique names for them yourself. Figuring out which function should be > called is the complilers business. > Besides which, operators such as + and - are (effectively) overloaded in almost all languages, and have been since the days of BASIC. It would surely be madness to insist that all the (effective) versions of + have different names. Done with care, overloading in Ada is useful. Consider Get in Text_IO: many would feel it a pain to have to write Get_My_Real, Get_My_Integer, etc., all the time. It is true that there is a danger of overloading being used with ill care, and causing confusion as a result. Nick.