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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: bitwise comparators Date: 2000/01/17 Message-ID: <85v8qn$ne4$1@hobbes2.crc.com>#1/1 X-Deja-AN: 573750037 References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@crc.com X-Trace: hobbes2.crc.com 948119191 24004 198.175.145.56 (17 Jan 2000 14:26:31 GMT) Organization: CRC: A wholly owned subsidiary of Thermo Electron X-MSMail-Priority: Normal NNTP-Posting-Date: 17 Jan 2000 14:26:31 GMT Newsgroups: comp.lang.ada Date: 2000-01-17T14:26:31+00:00 List-Id: Alexander Van Hecke wrote in message news:3882FC1C.2BA8C959@hotmail.com... > > I'd also like to point out that the "while" construct you are using is > > common for 'C' or Pascal, but in Ada you could use a "loop" construct with > > "exit when" > > > > thank you all for your response! > As many of you have pointed out, I could have used exit when ... > But as you probably noticed, I have a C background and I'm not that familiar > with Ada. I think it's a nice feature of Ada that you can write 'readable' > code, but IMHO Ada takes a lot longer to learn, there are more constructs, > keywords, etc... In a word, the language is more complicated, yet not > necessarily more powerfull (hope I don't get flamed for this :-)). In C you'd > have one while loop, and you'd put your condition in the while expression and > that's it. Nothing more to learn about it! > What's your opinion on this? > Ada makes it cleaner to exit from the middle of a loop, IMO. Try doing multi-tasking in Ada and in C if you want a real contrast where the Ada solution code is much simpler than the C.