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!z14g2000cwz.googlegroups.com!not-for-mail From: matteo.bordin@gmail.com Newsgroups: comp.lang.ada Subject: Re: prohibit certain generic instantiations in Ada 2005 Date: 12 Feb 2006 04:41:02 -0800 Organization: http://groups.google.com Message-ID: <1139748062.833652.170890@z14g2000cwz.googlegroups.com> References: <1139508110.410006.28260@g14g2000cwa.googlegroups.com> <1139515341.782860.197930@f14g2000cwb.googlegroups.com> <1139581110.636535.107910@g44g2000cwa.googlegroups.com> <1139645084.563448.239040@g47g2000cwa.googlegroups.com> <1139734552.205623.152990@o13g2000cwo.googlegroups.com> <4u3pbsvfen5r.9fs4r2tkp6m2.dlg@40tude.net> NNTP-Posting-Host: 151.47.139.202 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139748067 491 127.0.0.1 (12 Feb 2006 12:41:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Feb 2006 12:41:07 +0000 (UTC) In-Reply-To: <4u3pbsvfen5r.9fs4r2tkp6m2.dlg@40tude.net> 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: z14g2000cwz.googlegroups.com; posting-host=151.47.139.202; posting-account=F0PVCw0AAABbUMNt6pX6q_ZNh55rRxT7 Xref: g2news1.google.com comp.lang.ada:2866 Date: 2006-02-12T04:41:02-08:00 List-Id: I agree with you that the use of generics in my example is exagerated. But I am working on an application that requires a generic-based approach for components (while functional code can be "encapsulated" as classes' methods). BTW, the architecture I am working on has nothing to do with cars or transmission. As you said, the problem is more at the design/analysis level but it would be nice to map it on the code. The final aim is to produce a library that automatically checks at compile time if it is used correctly.