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 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: matteo.bordin@gmail.com Newsgroups: comp.lang.ada Subject: Re: prohibit certain generic instantiations in Ada 2005 Date: 10 Feb 2006 06:18:30 -0800 Organization: http://groups.google.com Message-ID: <1139581110.636535.107910@g44g2000cwa.googlegroups.com> References: <1139508110.410006.28260@g14g2000cwa.googlegroups.com> <1139515341.782860.197930@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 151.47.246.176 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139581115 24659 127.0.0.1 (10 Feb 2006 14:18:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Feb 2006 14:18:35 +0000 (UTC) In-Reply-To: <1139515341.782860.197930@f14g2000cwb.googlegroups.com> 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: g44g2000cwa.googlegroups.com; posting-host=151.47.246.176; posting-account=F0PVCw0AAABbUMNt6pX6q_ZNh55rRxT7 Xref: g2news1.google.com comp.lang.ada:2841 Date: 2006-02-10T06:18:30-08:00 List-Id: I understand and agree from a semantic point of view. However I would like to let the compiler perform some additional type checking on the generic instance. If the generic instantiation is not allowed, then I what the compiler to produce a compilation error. This makes sense if you are using generics as a generative tool for metaprogramming. This kind of things can be done in C++, which has a compilation model similar to Ada (for what concerns generics/templates).