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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!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: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Is there a way to do large block of source code comments Date: Thu, 04 Sep 2014 00:42:28 +0200 Organization: A noiseless patient Spider Message-ID: References: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> <4407fc6e-a3a6-47d6-8f49-a5a0a1e8e0c4@googlegroups.com> <1409734659.7121.231.camel@obry.net> <1409759532.7121.252.camel@obry.net> <766dc3c7-916b-488c-813c-8aee8b05ca0f@googlegroups.com> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 3 Sep 2014 22:42:29 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a631f4a085ededc0f5b0769b7fe21a52"; logging-data="20464"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vP+Sf6jSMsQARPSzRWi5H/XZccfFa9xE=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <766dc3c7-916b-488c-813c-8aee8b05ca0f@googlegroups.com> Cancel-Lock: sha1:uZPV73uzFEFE5RKiU12rnRakD78= Xref: number.nntp.dca.giganews.com comp.lang.ada:188850 Date: 2014-09-04T00:42:28+02:00 List-Id: On 03.09.14 20:52, Adam Beneschan wrote: > The sequence (*, if not in a conventional comment, starts a block comment. The comment ends with the next occurrence of the sequence *) that is not in a conventional comment. Within a block comment, it is illegal for the sequence (* to appear except in a conventional comment. A character sequence is "in a conventional comment" if it occurs anywhere between the sequence -- and the nearest subsequent end-of-line character. To see what happens in today's finest development equipment, feed this: #include int main() { /* ignore this: puts("*/"); */ } Or this, with nesting "supported": (defun main () #| ignore this (write "#|") |#) http://www.lispworks.com/documentation/HyperSpec/Body/02_dhsa.htm Or try OCaml for something that seems to work. The language manages without single line comments, though. F# adds them.