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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e6b0935218e0d0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!news.zanker.org!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: "Rick Santa-Cruz" Newsgroups: comp.lang.ada Subject: Re: private classes Date: Sat, 2 Oct 2004 23:12:21 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1096751712 03 15583 Q4cPXFO18s3GSMQw 041002 21:15:12 X-Complaints-To: usenet-abuse@t-online.de X-ID: Tbc7+vZT8eFvY0NtVMz5T5PQo5j3wUuAuwxscNy2xPKupAYtPtvD8Y X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Xref: g2news1.google.com comp.lang.ada:4577 Date: 2004-10-02T23:12:21+02:00 List-Id: Hi, > package Classes is > type Base_1 is tagged private; > > type Derived_1 is new Base_1 with private; > > procedure Proc(B: Base_1); > > private > type Base_1 is tagged record > Number: Integer; > end record; > > type Derived_1 is new Base_1 with null record; > end Classes; > > package body Classes is > procedure Proc(b: Base_1) is > begin > null; > end Proc; > end Classes; > > with Classes; > > procedure main is > D: Classes.Derived_1; > begin > Classes.Proc(D); > end Main; Ok, I got it. The declaration of the procedure has to be before the "type Derived_1 is new Base_1 with private;". Although I don't understand the sense of this, but ok ;). Bye, Rick