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,FREEMAIL_FROM autolearn=ham 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!news1.google.com!proxad.net!newsfeed.stueberl.de!feed.news.tiscali.de!news100.image.dk!news000.worldonline.dk.POSTED!not-for-mail From: "Peter Koch Larsen" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110053977.478846@athnrd02> Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: Date: Sat, 5 Mar 2005 23:37:08 +0100 NNTP-Posting-Host: 62.79.147.244 X-Complaints-To: news-abuse@wol.dk X-Trace: news000.worldonline.dk 1110062225 62.79.147.244 (Sat, 05 Mar 2005 23:37:05 MET) NNTP-Posting-Date: Sat, 05 Mar 2005 23:37:05 MET Organization: Customer of Tiscali A/S Xref: g2news1.google.com comp.lang.ada:8691 comp.lang.c++:44239 comp.realtime:975 comp.software-eng:4506 Date: 2005-03-05T23:37:08+01:00 List-Id: "Larry Kilgallen" skrev i en meddelelse news:Q5TNweyx8scS@eisner.encompasserve.org... > In article <1110053977.478846@athnrd02>, Ioannis Vranos > writes: >> Mark Lorenzen wrote: >> >>> You can do everything in Ada that you can in C and C++. >> >> >> I suppose you mean in the application-programming domain. But I do not >> think this is true in the systems programming domain, that is efficiency >> under *severe* run-time and space constraints. > > And what guesswork makes you think there would be efficiency problems > with Ada ? > >> Also I am not sure if ADA is suitable for library writing, or you will >> have to switch to another language to do that. > > Huh ? > > Again, what guesswork makes you suggest that ? > > It is even possible in Ada to make the calling convention be the > unsafe C-style interface (null terminated strings, etc.). But for > better safety in all the languages that might call the library, > it is better to avoid those C conventions. It is also possible to use zero-terminated strings in C++, but every knowledgeable person will advice that you use std::string. So what is the difference here? /Peter