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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Is there a way to do large block of source code comments Date: Wed, 03 Sep 2014 09:58:29 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 3 Sep 2014 16:58:31 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="5b4eadb0ecf28f7f740a0e18f3715b8f"; logging-data="22355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q+i2FvnpjY6L4p0z0XyG1RQ4gsLLLxw8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:Ki5OFgwZbAtZvt9BtukWtDHRWOA= Xref: number.nntp.dca.giganews.com comp.lang.ada:188834 Date: 2014-09-03T09:58:29-07:00 List-Id: On 09/03/2014 01:28 AM, Stefan.Lucks@uni-weimar.de wrote: > > Now, I actually think it would have been possible to have block comments the Ada > way (and is still possible for Ada 202X): Allow block comments (I'd suggest > Pascal's "(*" and "*)" for their brackets but that is a matter of taste). Just > prohibit nesting! I.e., any "(*" inside a block comment is a syntax error. > Conventional "--" comments are allowed, and any "(*" and "*)" inside a > conventional comment are allowed and ignored (i.e., not treated as block comment > brackets). No, the Ada way would be : comment begin the identifier is required, here and on the "end comment" anything in here is ignored, including any end comment ; Of course, a "comment begin" without a matching "end comment" is an error, as is an "end comment" without a matching "comment begin". end comment ; -- Jeff Carter "If a sperm is wasted, God gets quite irate." Monty Python's the Meaning of Life 56