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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!newsfeed.x-privat.org!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Mon, 25 Mar 2013 17:24:10 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <99929f93-b80f-47c3-8a37-c81002733754@googlegroups.com> <87ec4b1d-f7cd-49a4-8cff-d44aeb76a1ad@googlegroups.com> <78103a2f-5d19-4378-b211-1917175d5694@googlegroups.com> <3p6p8k0yfly7.ctazdw7fc5so$.dlg@40tude.net> <1jtvzi1v65aqm.1k5ejsveno59f.dlg@40tude.net> <1hvv2kd9smnfx.6spgz9thd1mh$.dlg@40tude.net> <1raubw1sk48ca$.69rdgczvnnf.dlg@40tude.net> <2qwq2cdeuvhu$.qtnb8zyhuob9$.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1364250254 9655 69.95.181.76 (25 Mar 2013 22:24:14 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 25 Mar 2013 22:24:14 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:14713 Date: 2013-03-25T17:24:10-05:00 List-Id: "Shark8" wrote in message news:c231e327-0859-4430-adfc-ed4de4de2208@googlegroups.com... > On Friday, March 22, 2013 8:33:02 PM UTC-6, Randy Brukardt wrote: >> >> I'd never trust any program with more than a handful of generics, it's >> just >> too hard to get the compilers to handle those right). > > That seems a bit odd... I would think that once you had a generic* method > for handling overloading you could apply that to generics as well. > > [* Pun intended.] It's the combination of a wealth of things, overloading is the easy one. Certainly a shared implementation (like the one in Janus/Ada) makes everything harder, but there are enough oddities in the handling of formals that it won't ever be easy. It's really the result of having a strong contract model for generics; that prevents using simple textual substitution for thing. Of course, you need a strong contract model if you want the generic to be correct without knowing anything about the instantiations. (Same as you do for subprograms.) Randy.