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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8029f6524ed823f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-03 17:17:34 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: johnp789@yahoo.com (John Pitney) Newsgroups: comp.lang.ada Subject: Specialization of generics Date: 3 Jun 2001 17:17:34 -0700 Organization: http://groups.google.com/ Message-ID: <46ba9d66.0106031617.c802df3@posting.google.com> NNTP-Posting-Host: 64.192.234.13 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 991613854 12169 127.0.0.1 (4 Jun 2001 00:17:34 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 4 Jun 2001 00:17:34 GMT Xref: archiver1.google.com comp.lang.ada:8050 Date: 2001-06-04T00:17:34+00:00 List-Id: Hello from an Ada newcomer! I'm an experimental physicist with a C/C++ background learning Ada (using GNAT on GNU/Linux on Intel) for use in numerics and possibly instrument control. Now the question: Is it possible to define a generic package taking one or more types as generic formal parameters, and then define that the generic is instantiated in a different way if the generic formal parameters match some condition? One application I could think of would be for an image package to handle 1-bit images in a compact way. The comp.lang.ada group seems great so far---I've enjoyed lurking for the last few months! John -- John Pitney johnp789 yahoo.com