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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ee10ec601726fbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-31 07:47:46 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Eric Merritt Newsgroups: comp.lang.ada Subject: Re: Questions - Polimorphism/Dynamic Binding Date: Wed, 31 Oct 2001 07:46:46 -0800 (PST) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1004543265 41302 137.194.161.2 (31 Oct 2001 15:47:45 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 31 Oct 2001 15:47:45 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: In-Reply-To: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:15480 Date: 2001-10-31T07:46:46-08:00 Matthew, > How does my example fail to do this? I hope I gave no offense, I am just trying to figure this out, I very new to Ada though not to programming. > > The whole point of an interface type is that you > have some operation that > operates on any object that conforms to that > interface, for example: > procedure Do_Something (O : in P.T'Class); -- > accepts the "interface" type > P.T > > Using the schema I showed, you can call Do_Something > on objects of Q.T: > > declare > O : Q.T; > begin > Do_Something (O.I); > end; > > No, you can't pass object O directly --you have to > pass O.I-- but so what? > This is only a syntactic matter. I'm still able to > call Do_Something, which > is all I care about. Once again, this may be a bit of a stupid question but I need to get this strait in my mind. In this instance does O.I have access to O? Or more specifically, how will the procedure Do_Something get access to the object properties which are actually stored in record O not O.I? Somehow I get the feeling I am missing something fairly important here. Thank you for your time. __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com