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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,262b74f44c7f873e,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: matteo.bordin@gmail.com Newsgroups: comp.lang.ada Subject: prohibit certain generic instantiations in Ada 2005 Date: 9 Feb 2006 10:01:50 -0800 Organization: http://groups.google.com Message-ID: <1139508110.410006.28260@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 151.47.225.182 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139508115 18982 127.0.0.1 (9 Feb 2006 18:01:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Feb 2006 18:01:55 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=151.47.225.182; posting-account=F0PVCw0AAABbUMNt6pX6q_ZNh55rRxT7 Xref: g2news1.google.com comp.lang.ada:2824 Date: 2006-02-09T10:01:50-08:00 List-Id: There's a way to prohibit certain generic instantiations (I'm using Ada 2005)? For example: generic Type B is new A with private; ... Should be instantiated only with a certain subtype(s) of A. I know a way to do that in C++ (with templates) but it doesn't seem to work in Ada.