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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,66bc6b039f1e005d X-Google-Attributes: gid103376,public From: John English Subject: Re: Three simple questions Date: 2000/10/10 Message-ID: <39E30759.7A402CB6@bton.ac.uk>#1/1 X-Deja-AN: 679708538 Content-Transfer-Encoding: 7bit References: <2BED68CA963D6D55.A78776F656DA0452.75A61ED22116F1B6@lp.airnews.net> <39e2588f.21565740@news.demon.co.uk> <39E2D51E.D0122F20@bton.ac.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@bton.ac.uk X-Trace: saturn.bton.ac.uk 971179888 6997 193.62.183.204 (10 Oct 2000 12:11:28 GMT) Organization: University of Brighton Mime-Version: 1.0 NNTP-Posting-Date: 10 Oct 2000 12:11:28 GMT Newsgroups: comp.lang.ada Date: 2000-10-10T12:11:28+00:00 List-Id: Dale Stanbrough wrote: > > John English wrote: > > > It gets even more fun with OOP; you think you've got a method called > > DoThisNow and override it, but it's actually called doThisNow; the > > result is two methods, one called doThisNow and the other called > > DoThisNow, which are of course completely unrelated... and the > > compiler will say nothing. > > Of course Ada has exactly the same problem, in that if you misspell > the name of a subprogram when trying to override, you are not > informed by the compiler (e.g. consider Finalize and Finalise). This is in fact a particularly bad one, as there aren't even any explicit calls you can search for, so debugging "by eye" is out. Case differences just add another opportunity for foot-shootery, though... as if there weren't already enough. > I think i like the Eiffel method better, where you explicity > state that you are overriding an inherited method. I agree completely -- from a safety point of view, something like this is surely essential for Ada 0X... ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------