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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ba8c21ddfbe0b1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-06 09:29:30 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!dziuxsolim.rutgers.edu!uunet!bloom-beacon.mit.edu!gatech!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail From: dweller@Starbase.NeoSoft.COM (David Weller) Newsgroups: comp.lang.ada Subject: Re: "Subtract C, add Ada" Date: 6 Jan 1995 11:29:30 -0600 Organization: NeoSoft Internet Services +1 713 684 5969 Message-ID: <3ejulq$geo@Starbase.NeoSoft.COM> References: <862035D1F1C@annwfn.com> <3ejf9b$hbg@majestix.uni-muenster.de> <3ejs70$dd8@info.epfl.ch> NNTP-Posting-Host: starbase.neosoft.com Date: 1995-01-06T11:29:30-06:00 List-Id: In article <3ejs70$dd8@info.epfl.ch>, Laurent Gasser wrote: >I am a happy user of Think Pascal for Macintosh. This defunct >compiler had two great (innovative?) tools: its debugger and an >automatic text formatter in the editor. You just type > >if mytest then begin end else begin end; >and at the ; the automatic formatter gives > >[example deleted] >where capitals may be bold (this is somehow parametable). This avoids >many many typos (in which case the formatter scrambles the mistyped >word) and makes it easy to move up or down with respect to nesting. >All this is done without compiling. Surprisingly, this feature has >not caught on in other environments I know... !? > >Is this part of GNAT? > Not at all. GNAT is a compiler, not an environment. To get such a behavior, you will need to use the GNU Emacs editor/environment and get the Ada-mode additions from cs.nyu.edu. It will do something very much like you're looking for (much more, to be honest). There are other editors out there that will support this mode, but none that I know of (currently) work with GNAT or Ada95. >In article <3ejf9b$hbg@majestix.uni-muenster.de>, rentmei@asterix.uni-muenster.de (Jahn Rentmeister) writes: >|> But you surely know about people who - at one time - wrote things like >|> >|> for (i=0; i < MAX_LOOP; i++); >|> field[i]=GetFieldValue(i); >|> >|> The original statement you were criticizing says "single-keystroke errors, >|> such as...". There are more of them than just assignment and empty loops. >|> My golden C rule says "any sufficiently obscure error is due to a missing or >|> superfluos semicolon". > >-- >Laurent Gasser (gasser@dma.epfl.ch) >Computers do not solve problems, they execute solutions. > >I know very few ideas worth dying for, none is worth killing. -- Frustrated with C/C++, Pascal, Fortran? Ada95 _might_ be for you! For all sorts of interesting Ada95 tidbits, run the command: "finger dweller@starbase.neosoft.com | more" (or e-mail with "finger" as subj.)