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,b6e97963d32ee242 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-21 13:36:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate Date: Wed, 21 May 2003 20:36:39 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <254c16a.0305210726.485125de@posting.google.com> <3ECBA778.4070909@crs4.it> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1053549399 20172 129.241.83.78 (21 May 2003 20:36:39 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 21 May 2003 20:36:39 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:37615 Date: 2003-05-21T20:36:39+00:00 List-Id: David C. Hoos wrote: > > The parameter is required to identify the "class" of which Prim is an > operation (method in classical OO-speak). In Ada, you can have > multiple "classes" (hopefully related) within a single package, and there > is no class structure to encapsulate both fields and methods of the class. > > When the fields and methods are encapsulated in a class structure, then > you have an implicit controlling parameter (e.g., named "this"). In Ada > it needs to be explicit. > > In this example, X is the object whose state is changed by the operation. Yes, but only because it is the first parameter of the procedure, right? "In Ada you model the problem space, not the solution space." -- Robert I. Eachus Preben