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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a27198a3d205d507 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-21 10:41:57 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: procedure and generic package Date: Fri, 21 Nov 2003 18:39:24 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <92bfc3dd.0311201234.6d706aa6@posting.google.com> <92bfc3dd.0311210955.1d65f893@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1069439975 33662 80.67.180.195 (21 Nov 2003 18:39:35 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 21 Nov 2003 18:39:35 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: <92bfc3dd.0311210955.1d65f893@posting.google.com> X-Mailer: Ximian Evolution 1.4.5 X-OriginalArrivalTime: 21 Nov 2003 18:39:20.0899 (UTC) FILETIME=[C7062930:01C3B05E] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:2829 Date: 2003-11-21T18:39:24+00:00 On Fri, 2003-11-21 at 17:55, lolo27 wrote: > please help me get it all right > my question is i need to write an ado that implement the generic > package. What on Earth is an "ado"? > in the ado i have a generic function that accept instant of the > generic > package. Surely you don't want to pass an "instant", because it will be gone just after you passed it ;-) Now serioulsy, what I think is the fundamental piece of Ada knowledge that you're lacking is: packages are not objects. So, you cannot pass packages to subprograms via parameters. You can of course pass objects associated with *any* package including your *instance* e.g. Op (X : Package_Instance.Object)