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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32e9e18947de9391 X-Google-Attributes: gid103376,public From: mcc@entropy.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Comments at the End of Lines Date: 1999/07/02 Message-ID: <7lj1om$oog$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 496521875 References: Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1999-07-02T00:00:00+00:00 List-Id: In article , Roger Racine wrote: >Are comments at the end of lines frowned upon for some reason? The latest >version of AdaGIDE, during a reformat, moves all such comments to the next >line. The statistics program provided by it gives incorrect results when >end-of-line comments exist. >Roger Racine No, although I tend not to use them. There didn't seem to be a good reason to have the reformatter do this, so I changed it to allow end of line comments. One of our faculty gave the counter as an assignment in a course here at the Academy. I got a copy of his solution a couple of years ago for a specific purpose. He left, and then we started using PSP. One person suggested it would be nice to have a tool in AdaGIDE that counted lines. I remembered I had this lying around and put in in. Alas, I do not have the sources, so I can't fix the problem that end of line comments are perceived as comment lines. Perhaps I need to give the assignment again :-). Or, maybe one of those people looking to hone their Ada skills could contribute it. --Martin -- Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy carlislem@acm.org, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standards or policy of the US Air Force Academy or the United States Government.