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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c84654714c2f5945 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT GPL Edition - on the plus side Date: 15 Oct 2005 10:45:39 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1u927xnbmsfw1$.1xg4jk31952ts$.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1129387539 9205 192.74.137.71 (15 Oct 2005 14:45:39 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 15 Oct 2005 14:45:39 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:5706 Date: 2005-10-15T10:45:39-04:00 List-Id: "Randy Brukardt" writes: > "Dmitry A. Kazakov" wrote in message > news:b4p2ksjzkv4m.6ghazx68f8js.dlg@40tude.net... > > Anyway, generics and templates are inherently a mess, but that is another > > story. (:-)) > > Perhaps because we haven't seen any crying need. I, for one would prefer to > reduce the need for generics than to pile on more features. You have said in > the past that generics are unnecessary with good OOP, and I tend to agree. Could either or both of you explain why generics are unnecessary (i.e. what changes to Ada's OOP would make them unnecessary). In particular, I want to be able to have a container type tied to the type of its elements (perhaps class-wide). If I have a "sequence of T'Class", and I put something in it, and take it back out, I don't want to lose the fact that this element is somewhere in the T'Class hierarchy. Generics seem to work well for that. How would you define the "sequence" abstraction without generics? - Bob