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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,91cc2b2a631886b8 X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: Generic Packages Date: 1998/08/12 Message-ID: #1/1 X-Deja-AN: 380635016 References: <35CF1129.4DCB0B15@lmco.com> X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 902893345 25195 144.205.16.58 (12 Aug 1998 03:42:25 GMT) Organization: Department of Computer Science, RMIT NNTP-Posting-Date: 12 Aug 1998 03:42:25 GMT Newsgroups: comp.lang.ada Date: 1998-08-12T03:42:25+00:00 List-Id: Whether the compiler makes two copies of an instantiated package depends, of course, on the compiler. Most compilers do not share generics, so you end up with code bloat. This is why I follow the rule of thumb that most package instantations should be at the library level (if you are using Gnat, they should be in a file of their own). This allows you the freedom to with the package at other places in the program. Also if you want a quick clean up of the code, replace any instantiation of integer_io (integer) with a "with Ada.Integer_Text_IO" in the context clause. Dale