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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-ID: <22665117.8KzpRJi7Al@linux1.krischik.com> From: Martin Krischik Subject: Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada) Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Reply-To: martin@krischik.com Date: Sun, 06 Mar 2005 11:43:47 +0100 References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1800709.LegSC0zdoW@linux1.krischik.com> <1110099035.843154@athnrd02> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.175.19 (83.169.175.19) NNTP-Posting-Date: Sun, 06 Mar 2005 12:00:10 +0100 X-Trace: 9ae44422ae2baf60c0ab610883 Xref: g2news1.google.com comp.lang.ada:8740 comp.lang.c++:44318 comp.realtime:1012 comp.software-eng:4544 Date: 2005-03-06T11:43:47+01:00 List-Id: Ioannis Vranos wrote: > Martin Krischik wrote: >> I usualy read - at least - the wiki article before I say anything about a >> programming language: >> >> http://en.wikipedia.org/wiki/Ada_programming_language > Certainly after the thread discussion, ADA has ascended a lot in my > interest scale (I always try to be reasonable). If your interest has been raised there is a larger Ada article on Wikibooks: http://en.wikibooks.org/wiki/Programming:Ada > In that Wiki link I saw it is covering a subset of the procedural > paradigm and recently also got support for OO. Also it supports generics. > The one remaining, does it support namespaces? :-) What subset of the > procedural paradigm it does not support? Yes, they are called packages and have been in Ada since 1983. http://en.wikibooks.org/wiki/Programming:Ada:Packages However they are move powerfull. For example generics are based on packages, a bit like: template <....> namespace Generic {}; > Also I saw that under severe constraints the run-time safety of the > language is better to be switched off. Which I never do. With activated optimizer the performance loss is so low there is almost no point in switching run-time check of. > I do not know much on the language, but can one define general-purpose > containers with Ada's generics that do range checking and throw an > exception when there is an attempt to access outside the boundaries of > the container, even if the aforementioned run-time safety is switched off? Shure, there are several container libs around, all doing that. http://en.wikibooks.org/wiki/Programming:Ada:Libraries:Container I have to confess that only the new Ada 2005 will have containers as a build in features. With the current Ada 95 you have to use external libraries. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com