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,cea03ed275aa3d28 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news.glorb.com!proxad.net!fdn.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <44A9495A.7020106@obry.net> Date: Mon, 03 Jul 2006 18:44:10 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: "Peter C. Chapin" Subject: Re: Question about generics. References: <7Q2qg.812592$084.507058@attbi_s22> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 03 Jul 2006 18:44:16 CEST NNTP-Posting-Host: 82.120.145.70 X-Trace: 1151945056 news.orange.fr 862 82.120.145.70:1829 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:5436 Date: 2006-07-03T18:44:16+02:00 List-Id: Peter C. Chapin a �crit : > Yes. However, this means at the point of instantiation I have to do > something like > > type Dummy_Type is mod 8; > package Fizzle is new Xyzzy(Index => Dummy_Type); > > The Dummy_Type will never be used in the context of the instantiation; Why won't it be used? If you pass it to the generic there lot of chances that some function/procedure will be passed such a type, no ? And so the type will be used on the client code too... Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595