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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: Larry Wissig Subject: Re: Any research putting c above ada? Date: 1997/04/26 Message-ID: <336148DD.4BC0@mindspring.com>#1/1 X-Deja-AN: 237431460 References: <5ih6i9$oct$1@waldorf.csc.calpoly.edu> <5j31lj$qnk@huron.eel.ufl.edu> <335F9D0E.41C67EA6@cacd.rockwell.com> <5jr4ak$dsm@bcrkh13.bnr.ca> X-Server-Date: 26 Apr 1997 04:15:27 GMT Organization: MindSpring Enterprises Reply-To: lwissig@mindspring.com Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.ada Date: 1997-04-26T04:15:27+00:00 List-Id: > > The requirements call for overloadable functions. It's religious issue > whether these are a good thing. IMHO, they are bad. I avoid overloading > function names even in languages that offer the feature. Overloaded function > names are extremely poor programming practice. To figure out which function > is called, you have to look at all the argument types and apply all kinds > of rules. In Ada, the rules are particularly arcane. Not only do the > actual argument types matter, but also the expected type that is inherited down > the expression tree. You have to be a compiler expert just to understand > what's going on. > > 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. Agreed Ada's rules are arcane. Point for C++. -- ///////////////////// //Larry Wissig //lwissig@mindspring.com /////////////////////