From: dan@it.uq.edu.au (Dan Johnston D.B.)
Subject: Re: Ada's Assembly Language Comments
Date: 1997/07/11
Date: 1997-07-11T00:00:00+00:00 [thread overview]
Message-ID: <5q4294$1vr$1@miso.it.uq.edu.au> (raw)
In-Reply-To: 0yQD$TAjanwzYw5m@clanchy.demon.co.uk
In <0yQD$TAjanwzYw5m@clanchy.demon.co.uk> RC <rc1@clanchy.demon.co.uk> 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
next prev parent reply other threads:[~1997-07-11 0:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-03 0:00 Ada's Assembly Language Comments RC
1997-07-03 0:00 ` Kenneth W. Sodemann
1997-07-04 0:00 ` Richard A. O'Keefe
1997-07-08 0:00 ` Kenneth W. Sodemann
1997-07-08 0:00 ` RC
1997-07-11 0:00 ` Robert Munck
1997-07-11 0:00 ` Dan Johnston D.B. [this message]
1997-07-13 0:00 ` Robert Dewar
1997-07-03 0:00 ` Samuel Mize
1997-07-04 0:00 ` Fergus Henderson
1997-07-07 0:00 ` Tucker Taft
1997-07-08 0:00 ` RC
1997-07-08 0:00 ` RC
1997-07-11 0:00 ` Stuart Palin
1997-07-11 0:00 ` Samuel Mize
1997-07-11 0:00 ` Joerg Rodemann
1997-07-03 0:00 ` Peter Hermann
1997-07-03 0:00 ` Robert Dewar
1997-07-03 0:00 ` RC
1997-07-08 0:00 ` Peter Hermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox