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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2eac5e4279bf777c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-17 12:47:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: "Jon Orris" Newsgroups: comp.lang.ada Subject: Re: C++ STL Components and Ada Date: Tue, 17 Jul 2001 15:47:39 -0400 Message-ID: <9j24mu$fhq$1@bob.news.rcn.net> References: <3B5237EC.D54299A7@worldnet.att.net> <3B5450EF.7D82CCF5@worldnet.att.net> Reply-To: "Jon Orris" X-Trace: UmFuZG9tSVZpGKH0uYBNOEPBMxAw4nanHdZ2HYABuMckqQeVtod847C5dTt1d65+o9QA+pyqB78= X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 17 Jul 2001 19:46:38 GMT X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MSMail-Priority: Normal Xref: archiver1.google.com comp.lang.ada:10094 Date: 2001-07-17T19:46:38+00:00 List-Id: "James Rogers" wrote in message news:3B5450EF.7D82CCF5@worldnet.att.net... > Brian Rogoff wrote: > > I wouldn't say they're the best thing since the invention of fire, but C++ > > templates allow all sorts of interesting things, almost like macros, but > > linked with the type system. They provide a crude form of parametric > > polymorphism which doesn't have the overhead associated with typical > > implementations of polymorphic languages. I can easily imagine an Ada-like > > language which steals some nice aspects of C++ templates. > > > > C++ templates also have the disadvantage that their instantiations > cannot > be checked by the compiler. Instead, you must deal with runtime errors > when making simple mistakes such as filling a container with values > of Animal and then trying to read them out as values of Mineral. Could you provide an example of what you mean here? I've seen this claim before, and have been unable to think of how this would occur. I've never had this sort of issue crop up when developing in C++. Jon Orris jonorris@ieee.org