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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c9a5d6b3975624e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-08 03:21:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: OO in Ada Date: Tue, 8 Oct 2002 10:21:13 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1034072473 21397 129.241.83.78 (8 Oct 2002 10:21:13 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 8 Oct 2002 10:21:13 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:29580 Date: 2002-10-08T10:21:13+00:00 List-Id: On Fri, 04 Oct 2002 02:14:44 +0000, Rick Duley wrote: > Hi all [...] > Do I labour under some serious misunderstanding, do I have something > terribly wrong? Afraid so, but read this: http://www.it.bton.ac.uk/staff/je/adacraft/part3.htm http://www.it.bton.ac.uk/staff/je/adacraft/ch04.htm#4.8 http://goanna.cs.rmit.edu.au/~dale/ada/aln/14_OO.html more can be found here: http://burks.bton.ac.uk/burks/language/ada/ada95.pdf (from p 169) > > 5. One final thing (for this time anyway ;), why is it that that Ada does > not use the intuitive 'object.method' syntax for making calls to and object. > This would mean that (in the case described in section 3) the call would > read > > Pen.Draw(To_X => n, To_Y => n); > > and with inheritance this would be accessible through the child package > declaring Thick_Pen. While I'm okay with using the existing syntax, I feel > the 'object.method' syntax is more intuitive and in line with OO thinking. > If there are people working on Ada0x then maybe we should be putting this > forward for consideration. No. Read: http://www.adapower.com/articles/class.html Preben -- Ada95 is good for you. http://libre.act-europe.fr/Software_Matters/02-C_pitfalls.pdf