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,7137ee7358078d09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.germany.com!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Basic Explaination of OO in Ada From: Georg Bauhaus In-Reply-To: <1158593087.194781.250030@e3g2000cwe.googlegroups.com> References: <1158593087.194781.250030@e3g2000cwe.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1158597105.7364.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Mon, 18 Sep 2006 18:31:45 +0200 NNTP-Posting-Date: 18 Sep 2006 18:26:20 CEST NNTP-Posting-Host: c97392a6.newsspool2.arcor-online.net X-Trace: DXC=4WkB1OaGCX?T2Rfi6 On Mon, 2006-09-18 at 08:24 -0700, richard.charts@gmail.com wrote: > Is the correct way to think in Ada, that in a package, there is some > record "object" and also a number of subprograms that can interact > with/on that record? Yes, this is the "normal" approach. Package Module is type T is tagged private; procedure put(x: in out T; item: SOME_TYPE); function get(x: T) return SOME_TYPE; private type T is tagged record ... implementation details ... end record; end Module;