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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.199.108 with SMTP id w72mr18987098yhn.31.1409702875569; Tue, 02 Sep 2014 17:07:55 -0700 (PDT) X-Received: by 10.50.44.18 with SMTP id a18mr529241igm.12.1409702875472; Tue, 02 Sep 2014 17:07:55 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!m5no5317372qaj.0!news-out.google.com!aw9ni2087igc.0!nntp.google.com!r2no13198332igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 2 Sep 2014 17:07:54 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.2.70.40; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le NNTP-Posting-Host: 123.2.70.40 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> Subject: Re: Is there a way to do large block of source code comments From: robin.vowels@gmail.com Injection-Date: Wed, 03 Sep 2014 00:07:55 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:188815 Date: 2014-09-02T17:07:54-07:00 List-Id: On Tuesday, September 2, 2014 5:04:21 AM UTC+10, Jeffrey Carter wrote: > On 09/01/2014 10:24 AM, g.nospam@gmail.com wrote: > > > > > > is there a way to handle several lines at a time without having to do -- on every line? > > > > > > like /* ... > > > ... > > > */ > > > > > > used in C, could be used to handle multiple line comments. > > > > No, this was explicitly omitted. See the Ada-83 Rationale 2.1: "Single comments > > that are larger than one line are not provided. Such comments would require a > > closing comment delimiter and this would again raise the dangers associated with > > the (unintentional) omission of the closing delimiter: entire sections of a > > program could be ignored by the compiler without the programmer realizing it, so > > that the program would not mean what he thinks. Long comments can be written as > a succession of single line comments, thus combining elegance with safety." When a block of code is to be omitted (temporarily or semi-permanently) it's convenient to have something like /* and */ as comment markers. It's also convenient to have comment markers for long blocks of comments. Live parsing editors are useful tools, because they highlight code segments (including comments). The above quotation is mere hype, like the author's justification for omitting exponentiation in Pascal, somehow more convenient to use log and exp instead!