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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f51e93dacd9c7fca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-14 11:44:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: status of Ada STL? Date: 14 Jun 2002 11:44:52 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0206141044.354df51@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1024080293 32269 127.0.0.1 (14 Jun 2002 18:44:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 14 Jun 2002 18:44:53 GMT Xref: archiver1.google.com comp.lang.ada:25963 Date: 2002-06-14T18:44:53+00:00 List-Id: 18k11tm001@sneakemail.com (Russ) wrote in message news:... > I am trying to determine the status of the Ada version of the C++ > Standard Template Library. I see that this has been discussed in the I vaguely remember someone talking about trying to clone the STL. I don't think that's being actively worked on now. There are efforts underway to expand Ada's standard library to include a bit more stuff, including some stuff similar to things in the STL. (Eg: Lists and Maps). > to the C++ STL? And does Ada have any fundamental limitations that > preclude the full functionality of the C++ version? Thanks. As far as cloning the STL goes, one would run into a couple of problems, I think. The first is that C++ templates use a kind of structural equivalence for templates, rather than named equivalence like Ada uses for generics. That means that its easier to make all the C++ templates interoperate with each other than it would be for Ada generics (there are drawbacks to that, though, which is why Ada doesn't do it). The second issue is that C++ templates allow a lot more options for default template parameters than Ada generics do. This isn't fatal for an Ada STL, but it would make the Ada clone of the STL much harder to use than the C++ STL is. Thirdly, there's a fair bit of stuff in the STL that Ada already has or does not need. Strings, vectors, and bit sets are some examples. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - (temporarily down)