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,2cd0b8b65b7d84fb X-Google-Attributes: gid103376,public From: dan@it.uq.edu.au (Dan Johnston D.B.) Subject: Re: Ada's Assembly Language Comments Date: 1997/07/11 Message-ID: <5q4294$1vr$1@miso.it.uq.edu.au>#1/1 X-Deja-AN: 256083011 References: <33bbbea9.8325807@news.mhtc.net> <0yQD$TAjanwzYw5m@clanchy.demon.co.uk> Organization: School of Information Technology, University of Queensland Newsgroups: comp.lang.ada Date: 1997-07-11T00:00:00+00:00 List-Id: In <0yQD$TAjanwzYw5m@clanchy.demon.co.uk> RC writes: >The problems with comment nesting in 'C' were acknowledged, but were >elegantly dealt with in Modula 2. Pittman and Peters in "The Art of Compiler Design" give the example of the following assignment statement in Modula 2. AnyString := '*) WriteString("Surprise!"); (*' Attempting to comment out code including this statement results in the appearance of the WriteString("Surprise"); as an executable statment. This is probably not too likely to occur in practice, but to me it kills the idea that the comment design in Modula 2 is to be emulated. Having written lots of both Ada and Modula 2, (more Modula 2), I prefer the Ada style provided that I have an editor - such as EMACS with Ada mode - which allows me to easily comment and uncomment a section of code. I can sympathise with the linewrapping problem, as I've been caught by that also - but not in Ada. For me, EMACS effectively solves this by putting a \ in the last column when it line wraps. dan. Dan Johnston. dan@it.uq.edu.au