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,23ca868289d9f0c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: generic package with procedure paramter gives "not subtype conformant with declaration" Date: 01 Oct 2006 16:18:22 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1159651201.121690.130430@b28g2000cwb.googlegroups.com> <1159731751.062918.160520@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1159733902 25892 192.74.137.71 (1 Oct 2006 20:18:22 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 1 Oct 2006 20:18:22 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news2.google.com comp.lang.ada:6827 Date: 2006-10-01T16:18:22-04:00 List-Id: "cl1" writes: > 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. And you wanted to do Av_Param_Instance'Access inside the generic? That won't work, because the compiler can't check the rules about X'Access, because it doesn't know enough about the actual parameter passed to Av_Param_Instance. The accessibility rules come to mind. Also, the fact that you can't do X'Access if X is intrinsic. - Bob