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-Thread: 103376,878cc452376823e0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!f36g2000hsa.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Generic body Date: Thu, 15 May 2008 01:43:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1305764a-2bae-4fd9-b2b6-ee24fd94682a@f36g2000hsa.googlegroups.com> References: NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1210840992 31413 127.0.0.1 (15 May 2008 08:43:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 May 2008 08:43:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f36g2000hsa.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:69 Date: 2008-05-15T01:43:12-07:00 List-Id: Here is how to do it... -- package MyPack is generic type Toto is limited private; procedure MyProc; procedure MyProcInt; procedure MyProcChr; end MyPack; package body MyPack is procedure MyProc is begin null; -- Some stuff end MyProc; procedure MyProcInt_internal is new MyProc(Toto => Integer); procedure MyProcChr_internal is new MyProc(Toto => Character); procedure MyProcInt renames MyProcInt_internal; procedure MyProcChr renames MyProcChr_internal; end MyPack; __________________________________________________________________ Gautier's Ada programming -- http://sourceforge.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!