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: fac41,b2bad1e85ca20475 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,5b3c19b1631bb558 X-Google-Attributes: gid103376,public From: Lothar Scholz Subject: Re: The best thing/greatest feature summary Date: 2000/11/24 Message-ID: #1/1 X-Deja-AN: 697386577 Content-Transfer-Encoding: 7bit References: <39DCB9E3.EAE8F426@ftw.rsc.raytheon.com> <39F9FCCE.D6719C6F@ftw.rsc.raytheon.com> <3A1DCF24.CF7A3908@deakin.edu.au> X-Sender: 520038492506-0001@t-dialin.net Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@t-online.com X-Trace: news.t-online.com 975070544 06 20308 ERpFU9ESVaI7F 001124 12:55:44 Organization: AnarchoSoft Mime-Version: 1.0 Newsgroups: comp.lang.eiffel,comp.lang.ada Date: 2000-11-24T00:00:00+00:00 List-Id: On Fri, 24 Nov 2000 13:15:00 +1100, Peter Horan wrote: >Lothar Scholz wrote: >> >> On Fri, 27 Oct 2000 17:08:14 -0500, Wes Groleau >> wrote: >> > >> >Since I didn't learn much, anyone game for an alternate question? >> >Let X your favorite and Y the other (of Ada or Eiffel). What is >> >the one feature (if any) of Y that you wish was in X ? >> >> X := Eiffel >> Y := Common Lisp >> >> If wish that the :before :after method to patch a method would >> be in Eiffel. > >What about > >class A >feature > f is > do > -- body > end >end > >class B >inherit A > redefine f >feature > f is > do > -- stuff done before > Precursor -- execute the original body > -- stuff done after > end But you can't add this to a feature dynamically and you must change the inheritance hierarchie. This is definitely not the purpose of the before/after methods. Have a look at what is now known as aspect oriented programming and you will find that eiffel and most other languages (expect Java and Lisp) really sucks in this area. Perhaps someone will implement an eiffel aspect weaver as a Ph.D. thesis. But eiffel is so less used that i don't really expect anything - it looks that everybody is on the java side.