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-Thread: 103376,901038687c38f61c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!image.surnet.ru!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Idiom for a class and an object in Ada Date: Wed, 20 Oct 2004 15:53:58 +0200 Message-ID: <1jzc1pvwmu2zi.1eaymtl0ge604$.dlg@40tude.net> References: <41752559$0$91011$39cecf19@news.twtelecom.net> <138j4nfhzsc45$.1581kzqfi5e89$.dlg@40tude.net> <41753277$0$74190$39cecf19@news.twtelecom.net> <14c2cz6mqb2jr.14y3calkn0fm7$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de es0vJWngk+/hFIeQXu9J6Qwm6qLoeJtOm+KPYjMe/doGMXAAc= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:5518 Date: 2004-10-20T15:53:58+02:00 List-Id: On Wed, 20 Oct 2004 12:31:48 GMT, Marin David Condic wrote: > Consider it this way: You go to an Object Oriented Design class and > Grady Booch starts explaining to you about a "Class" with "Attributes" > and "Methods". Having learned all that, you basically discover that the > corresponding Ada idiom for a class would be a package with a tagged > type and a bunch of functions & procedures to act as the methods. (Am I > wrong about that? Is there some other preferred idiom for implementing a > 'class' in Ada?) Maybe I am preaching heresy, but I find Ada's type/operation/package view more usable than class/attribute/method. So I don't much care what would be an OO-ish class in Ada. (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de