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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23ca868289d9f0c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: "cl1" Newsgroups: comp.lang.ada Subject: Re: generic package with procedure paramter gives "not subtype conformant with declaration" Date: 1 Oct 2006 12:42:31 -0700 Organization: http://groups.google.com Message-ID: <1159731751.062918.160520@b28g2000cwb.googlegroups.com> References: <1159651201.121690.130430@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: 66.160.210.89 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1159731755 21049 127.0.0.1 (1 Oct 2006 19:42:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 1 Oct 2006 19:42:35 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=66.160.210.89; posting-account=MCxsfw0AAABxs2rB6FOIOk-6XLUrvbBM Xref: g2news2.google.com comp.lang.ada:6825 Date: 2006-10-01T12:42:31-07:00 List-Id: Simon Wright wrote: > Put this somewhere (in package avcall I guess) > > type Av_Param_Access > is access procedure (AList : System.Address; > Value : System.Address); > > then > > generic > type Any_Type is private; > Av_Param_Instance : Av_Param_Access; > package avcall.register_type is > > Compiles OK (same environment as you), whether it is correct and > whether it works are of course different matters. Thank you very much. It fixed the problem, but i do not understand why: with procedure Av_Param_Instance(Av_List, Value : System.Address); does not work. If anyone knows why, I would be greatfull for an explination.