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,3d6ef988ec3a5ef7 X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator Date: 1998/01/23 Message-ID: <199801231445.PAA29373@basement.replay.com>#1/1 X-Deja-AN: 318610482 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: Replay Associates, L.L.P. Mail-To-News-Contact: postmaster@nym.alias.net X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Newsgroups: comp.lang.ada Date: 1998-01-23T00:00:00+00:00 List-Id: <199801221427.PAA05971@basement.replay.com> On 22 Jan 1998 15:00:06 -0500, dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > > How universal is the convention of no space after unary operators? > > GNAT quite often uses spacing as a clue for messages. FOr example > > a := b > c; > > generates a missing semicolon flagged right after the b, but > > a := b c; > > generates a missing operator message flagged between the b and the c. > > So this is a definite possible way of making the distinction if it seems > statistically right to do so. > > Of course the double barrelled error message > > missing operand or missing parentheses around unary "+" > > is not too long, so that's a possibility with two votes so far ... > Yeah, that one's OK. I've never seen hand-written code with a space after unary "+" or "-". (Hand-written code always has a space after "abs", which is a unary operator. Henceforth, I'm only talking about unary "+" and "-".) However, I have seen code formatters that put a space between them and the operand (Rational Apex is one, if I'm not mistaken). As for statistics about spacing and unary operators, what are the statistics from your several MSLOC regression test suite + ACVC + DEC tests? That's probably as representative a sample as anyone has access to. Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/