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,5fe352a7b58a0dd6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.tele.dk!dotsrc.org!news.dotsrc.org!not-for-mail Message-ID: <6932912.qy7ZcvDnCF@linux1.krischik.com> From: Martin Krischik Subject: Re: Bye, bye? Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Sun, 06 Feb 2005 08:19:31 +0100 References: <1360923.fGEqWSjcJk@linux1.krischik.com> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: 83.169.148.166 X-Trace: DXC=e`6@bcgeRZMKJ1ZiZQ]7SLYSB=nbEKnkKWefX3[Zg9MIS5daR30PdPEV:_8RJBabHMX;7WU9ib2ZKZQ`l7L8XGCFn4c:c]M`dnGaBPdSh0TI0D X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:8173 Date: 2005-02-06T08:19:31+01:00 List-Id: tmoran@acm.org wrote: >> > infinite loop without a faked up condition. The idea being that in >> > Ada the typical infinite loop would normally be terminated by >> > detonation. >> >> Maybe he found out how to do it in C/C++: >> >> for (;;) >> { ... >> } > They aren't the same. Within the C language, that program's single > task would indeed only be terminated by detonation. But an Ada program > could well have other tasks doing useful things at the same time as > the one task was in an infinite loop. Well, I had the three ... missing indication that indeed something usefull is happening inside the inifintive loop. Apart from that - you are right. But it is a nice examample for readability: loop ... end loop; vs. for (;;) { ... } C/C++ 10 characters of with 6 special characters - Ada 12 characters of with only 1 special character. And the (;;) beeing specialy obscure. Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com