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,dad94612ff745427 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: Instantiating private types with discriminants? Date: 10 May 2006 07:21:22 -0700 Organization: http://groups.google.com Message-ID: <1147270882.727958.212080@u72g2000cwu.googlegroups.com> References: <1147252198.138173.203910@j73g2000cwa.googlegroups.com> NNTP-Posting-Host: 212.190.145.10 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1147270889 3680 127.0.0.1 (10 May 2006 14:21:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 May 2006 14:21:29 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.6) Gecko/20040116,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 SEVPXS01 Complaints-To: groups-abuse@google.com Injection-Info: u72g2000cwu.googlegroups.com; posting-host=212.190.145.10; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news2.google.com comp.lang.ada:4176 Date: 2006-05-10T07:21:22-07:00 List-Id: rick H wrote : > Thanks, Ludovic. Bearing in mind that, in my original example, Var_A is > declared as an *access* to the class-wide type, I tried declaring the > various Put procedures as you showed, and then simply dereferencing > Var_A when calling Put: > Put (Var_A.all); > However, the compiler (gnat) complained that I cannot use a class-wide > argument in this case. This sounds suspicious; it should work. Could you post your full source code? I think there may be a small mistake somewhere. -- Ludovic Brenta.