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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1d321b3a6b8bcab2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-29 22:50:39 PST Path: swrinde!gatech!darwin.sura.net!wvnvms!marshall.wvnet.edu!marshall.edu!hathawa2 Newsgroups: comp.lang.ada Subject: Re: "Subtract C, add Ada" Message-ID: <1995Jan29.202418@hobbit> From: hathawa2@marshall.edu (Mark S. Hathaway) Date: 29 Jan 95 20:24:18 EDT References: <3fo2ot$su2@miranda.gmrc.gecm.com> <1995Jan23.154631.6702@sei.cmu.edu> <3g4p94$g07@cronkite.seas.gwu.edu> Organization: Marshall University Nntp-Posting-Host: frodo.marshall.edu Date: 1995-01-29T20:24:18-04:00 List-Id: > In article <3g4p94$g07@cronkite.seas.gwu.edu>, > dobrien@seas.gwu.edu (David O'Brien) writes: > : Robert Firth (firth@sei.cmu.edu) wrote: > : LOOP > : get(c); > : EXIT WHEN c /= ASCII.SP; > : END LOOP; > : > : Note also that if there are *no more* non space characters, the C code > : dies in an infinite loop, while the Ada code automatically does the > : right thing, namely raises the END_ERROR exception. > Woa! Just how is it going to be determined that "enough" spaces have > been processed before it is decided that we have an infinate loop? > I'm not too sure I want some compiler/run-time to decide it has had > enough and kill my program... > > -- David O'Brien (dobrien@seas.gwu.edu) Why should C code die in an infinite loop? Wouldn't that eventually be an end-of-file character, if not some other non-space character(s)? Mark S. Hathaway