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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5fd1cba526594f4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-10 04:17:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feed.news.nacamar.de!newsfeed.eunet.at!newsfeed.austria.eu.net!news.mailgate.org!mygate.mailgate.org!194.185.74.204!not-for-mail From: "Sim Con" Newsgroups: comp.lang.ada Subject: Some questions Date: Thu, 10 Oct 2002 11:17:54 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <6c4a2b60cbe5ecf058fadca48f6c6e80.110780@mygate.mailgate.org> NNTP-Posting-Host: 194.185.74.204 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1034243145 17671 194.185.74.204 (Thu Oct 10 13:17:52 2002) X-Complaints-To: abuse@mailgate.org NNTP-Posting-Date: Thu, 10 Oct 2002 11:17:54 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=194.185.74.204; posting-account=110780; posting-date=1034243145 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.lang.ada/6c4a2b60cbe5ecf058fadca48f6c6e80.110780%40mygate.mailgate.org Xref: archiver1.google.com comp.lang.ada:29648 Date: 2002-10-10T11:17:54+00:00 List-Id: Hello! i have some questions, here i go: I have a generic stack and i want to print it but the element (the generic part) could be integer or float so i think i can expand the instantiated generic class with a child with only the right print procedures, so i make this (for float, but the same for int): stack_float.ads --------- with Stacks; pragma elaborate_all(stacks); package stack_float is new Stacks(float); ------------------ compilation ok, so problems come here: stack_float_print.ads --------- package stack_float.print is procedure Stampa(P: in Pila_int.pila); end stack_float.print; ------------------ the compilator says "child of an instance must be an instance or renaming", so what's wrong? How can i build custom procedures for print the generic elements in generic packages??? Thanxs in advance ^_^ -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG