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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: friend classes in ada95 Date: 2000/04/20 Message-ID: <8dmts9$hd9$1@wanadoo.fr>#1/1 X-Deja-AN: 613560733 References: <8dh37m$qef$2@wanadoo.fr> <3B5L4.1317$B43.116109@news.pacbell.net> <38FD1830.949F5E81@mindspring.com> <38FD1C9E.7C2B7756@research.canon.com.au> <8dldqi$mb7$1@nnrp1.deja.com> <38FE365D.31C893A6@acm.org> <8dmj62$4i7$1@wanadoo.fr> <8dmm12$1j7$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 956234441 17833 193.250.161.117 (20 Apr 2000 12:40:41 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 20 Apr 2000 12:40:41 GMT Newsgroups: comp.lang.ada Date: 2000-04-20T12:40:41+00:00 List-Id: Robert Dewar a �crit dans le message : 8dmm12$1j7$1@nnrp1.deja.com... > The point is that the OO approach is most often useful ONLY > if it does indeed model the real world, so if your real world > problem is not naturally "object oriented", then forcing it > into the OO paradigm may considerably distort the model. > Absolutely. I have a book about Eiffel that takes as a first example of OOP... an expression evaluator. Every time you encounter a (sub)expression, you create an "expression" object, call its "evaluate" method, and then destroy the object... Like M. Gauthier likes to say: "not everything is an object" -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog