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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b5ab7c96b188b59e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-15 03:09:28 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: The "()" operator revisited. Date: Thu, 15 Jan 2004 11:09:27 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3cga00pecuc18o3irdnmoin4e7ekh87n76@4ax.com> <9ojc00dr0nehitt23o7adh43sc7acujio0@4ax.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1074164967 29790 134.91.1.34 (15 Jan 2004 11:09:27 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 15 Jan 2004 11:09:27 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:4430 Date: 2004-01-15T11:09:27+00:00 List-Id: Dmitry A. Kazakov wrote: : On Thu, 15 Jan 2004 01:21:16 +0000 (UTC), Georg Bauhaus :>Hm. How do you know then that you get an Apple from some Set, and :>not an Orange? Is there a run time penalty? : : Which one? Templates do it at compile time anyway, so the type tags : are statically known. That is, if I have, in a unit procedure generic_array_shuffle(box: Fruit_Array); and then in another unit declare A: Apple_Array; begin generic_array_shuffle(A); end; declare O: Orange_Array; begin generic_array_shuffle(O); end; the compiler would not be informed about component sizes when compiling the unit containing generic_array_shuffle, right? Will it then have to, uhm, instantiate a procedure for the two calls above with component sizes adjusted, behind the scenes? -- Georg