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,b74ec64483660e21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-23 19:24:28 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!not-for-mail Message-ID: <3B5CDBCA.5810@li.net> From: Vincent Marciante X-Mailer: Mozilla 3.0 (OS/2; I) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: When to use 'Class in a parameter list References: <9ji1b3$4pi$1@nh.pace.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 23 Jul 2001 22:22:02 -0400 NNTP-Posting-Host: 168.191.55.78 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 995941464 168.191.55.78 (Tue, 24 Jul 2001 02:24:24 GMT) NNTP-Posting-Date: Tue, 24 Jul 2001 02:24:24 GMT Organization: Verio Xref: archiver1.google.com comp.lang.ada:10491 Date: 2001-07-23T22:22:02-04:00 List-Id: Marin David Condic wrote: > > In code: > > procedure Op (Base : in out Base_Type) ; > ... > X : Child_Type ; > ... > Op (X) ; -- Why is this working without a Base_Type (X) conversion??? > Assuming that Op is defined as a primative of Base_Type then a procedure procedure Op (Base : in out Child_Type) ; automaticaly exists as a consequence of having derived Child_Type from Base_Type. This is the case for all derived types and has nothing to do with the taggedness of the types in question.