From: Martin Krischik <martin@krischik.com>
Subject: Re: Bye, bye?
Date: Sun, 06 Feb 2005 08:19:31 +0100
Date: 2005-02-06T08:19:31+01:00 [thread overview]
Message-ID: <6932912.qy7ZcvDnCF@linux1.krischik.com> (raw)
In-Reply-To: M6mdnV_MKLXpvpjfRVn-rg@comcast.com
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
next prev parent reply other threads:[~2005-02-06 7:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-02 2:48 Bye, bye? Wes Groleau
2005-02-02 13:33 ` Frank J. Lhota
2005-02-03 4:19 ` Wes Groleau
2005-02-04 1:28 ` James E. Hopper
2005-02-04 3:46 ` Wes Groleau
2005-02-02 21:12 ` Ludovic Brenta
2005-02-03 4:24 ` Wes Groleau
2005-02-03 4:32 ` Wes Groleau
2005-02-09 19:04 ` mheaney
2005-02-03 0:20 ` Jeffrey Carter
2005-02-03 4:30 ` Wes Groleau
2005-02-03 5:54 ` Eric Jacoboni
2005-02-03 14:38 ` G. Vincent Castellano
2005-02-03 15:49 ` Martin Krischik
2005-02-05 19:50 ` tmoran
2005-02-06 7:19 ` Martin Krischik [this message]
2005-02-06 19:43 ` Simon Wright
2005-02-06 20:00 ` Pascal Obry
2005-02-04 1:08 ` Jeffrey Carter
2005-02-04 3:46 ` Wes Groleau
2005-02-04 3:48 ` Wes Groleau
2005-02-27 15:35 ` Paul Colin Gloster
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox