From: nobody@REPLAY.COM (Anonymous)
Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator
Date: 1998/01/22
Date: 1998-01-22T00:00:00+00:00 [thread overview]
Message-ID: <199801221427.PAA05971@basement.replay.com> (raw)
In-Reply-To: dewar.885449767@merv
<01bd1e34$1632c2c0$24326489@Westley-PC.calspan.com>
<dewar.884489205@merv> <mheaney-ya023680001001982248520001@news.ni.net>
<34bba5a1.224459@SantaClara01.news.InterNex.Net>
<En3Cxz.7HD@world.std.com> <dewar.885328875@merv>
On 22 Jan 1998 01:18:36 -0500, dewar@merv.cs.nyu.edu (Robert Dewar)
wrote:
>
>
> x & + b
asking for comments about the error message that a compiler should put
out when it encounters this kind of construct. The writer intended to
use unary "+", but forgot to surround "+b" with parentheses.
I frequently don't see postings to this newsgroup, or see them out of
order. This is the first I've seen of Dewar's request about this. If I'd
seen it earlier, I might have replied earlier.
"X & + B" might be "X & Y + B", where the writer didn't hit the Y key
hard enough and didn't notice it, or it might be "X & (+ B)" without
parentheses. If it's the former, the compiler should put out an error
message about missing the left operand for binary "+"; if the latter,
about needing parentheses for unary "+" in this context. Is it possible
for the compiler to tell the difference?
In real Ada, we're more likely to see "Xenia & +Bernard" than "X & + B"
(spaces significant). It this likely to be a typo for "Xenia & Yakob +
Bernard"? I think not. Therefore, I think the error message should
generally be about unary "+".
Also, unary "+" and "-" generally don't have following spaces (though
I've seen pretty-printed code where they did), so the spacing could give
a clue as to what was intended.
That's my valeur de deux centimes.
Jeff Carter PGP:1024/440FBE21
My real e-mail address: ( carter @ innocon . com )
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
Posted with Spam Hater - see
http://www.compulink.co.uk/~net-services/spam/
next prev parent reply other threads:[~1998-01-22 0:00 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-11 0:00 renaming Interfaces.Java.Ada_To_Java_String to the + operator Terry J. Westley
1998-01-10 0:00 ` Robert Dewar
1998-01-10 0:00 ` Matthew Heaney
1998-01-13 0:00 ` Tom Moran
1998-01-13 0:00 ` Stephen Leake
1998-01-13 0:00 ` Nick Roberts
1998-01-13 0:00 ` Stephen Leake
1998-01-13 0:00 ` Robert Dewar
[not found] ` <En3Cxz.7HD@world.std.com>
1998-01-20 0:00 ` Robert Dewar
1998-01-21 0:00 ` Stephen Leake
1998-01-22 0:00 ` Robert Dewar
1998-01-22 0:00 ` Anonymous [this message]
[not found] ` <dewar.885498969@merv>
1998-01-23 0:00 ` Geert Bosch
1998-01-23 0:00 ` Tom Moran
1998-01-23 0:00 ` Anonymous
1998-01-24 0:00 ` Tucker Taft
1998-01-11 0:00 ` Chris Morgan
1998-01-11 0:00 ` Robert Dewar
1998-01-11 0:00 ` Chris Morgan
1998-01-11 0:00 ` Robert Dewar
1998-01-11 0:00 ` Chris Morgan
1998-01-11 0:00 ` Robert Dewar
1998-01-11 0:00 ` Nick Roberts
1998-01-11 0:00 ` Robert Dewar
1998-01-14 0:00 ` Anonymous
1998-01-14 0:00 ` Robert Dewar
1998-01-11 0:00 ` Brian Rogoff
1998-01-13 0:00 ` Terry J. Westley
1998-01-14 0:00 ` Robert Dewar
1998-01-15 0:00 ` Nick Roberts
1998-01-15 0:00 ` Robert Dewar
1998-01-16 0:00 ` Michael F Brenner
1998-01-16 0:00 ` Nick Roberts
1998-01-16 0:00 ` Robert Dewar
1998-01-17 0:00 ` miniscences Nick Roberts
1998-01-17 0:00 ` miniscences Robert Dewar
1998-01-19 0:00 ` renaming Interfaces.Java.Ada_To_Java_String to the + operator Anonymous
1998-01-25 0:00 ` Matthew Heaney
1998-01-16 0:00 ` Robert Dewar
1998-01-12 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox