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-Thread: 103376,7b5615402713dcbb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.85.199 with SMTP id j7mr3091941paz.36.1346194827880; Tue, 28 Aug 2012 16:00:27 -0700 (PDT) Path: t10ni108727671pbh.0!nntp.google.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Ada and Java/C++ Date: Tue, 28 Aug 2012 23:00:27 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <8bfbf709-18ac-43cd-b037-ce47adde96c2@googlegroups.com> <1dy5xgqtdqpp6$.qio4t8fjk8b5.dlg@40tude.net> <513d6efb-6aad-4013-8b21-37c75aa6aaf7@googlegroups.com> Mime-Version: 1.0 Injection-Date: Tue, 28 Aug 2012 23:00:27 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="0e44dd4a3c4e0a6e83a86f947fb780ae"; logging-data="30452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m8AHP8bF7i7dY8RuUU+W/Ex2gReYAe8Q=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:/phL9Hmji02Bzj7dU24UM/dymH4= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-08-28T23:00:27+00:00 List-Id: On Tue, 28 Aug 2012 13:09:24 -0400, Dennis Lee Bieber wrote: > On Tue, 28 Aug 2012 10:50:40 +0000 (UTC), Brian Drummond > declaimed the following in comp.lang.ada: > >> Changing begin and end to { and } does not change the syntax a jot*, >> but > > But you would also be changing > > begin { > then { > loop { (etc) ... you certainly would, as I conceded originally "it would take a lot of work" if the result was not to mess up badly - including error reporting, as you say. > It would make a mess of compiler error reporting when the compiler > can not identify if a missing "end" is an "end if", "end case", "end > loop", "end whatever". However the error report would originate in the compiler - not the preprocessor - and therefore it would be on the generated Ada (with a post-processor nod to the original code). It would say "missing } : end if" or such, and the coder would be responsible for counting his }}}}s. I think that would be of benefit, by pointing out how much easier it would be to write Ada directly! - Brian