comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Where did /= come from?
Date: Wed, 6 Nov 2002 17:33:57 GMT
Date: 2002-11-06T17:33:57+00:00	[thread overview]
Message-ID: <wcc1y5yiovu.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 3DC93F8B.9E28FD15@mmm.com

cjsonnack@mmm.com (Programmer Dude) writes:

> I'm learning Ada (installed GNAT and AdaGIDE last week, wrote Hello, World).
> 
> I was somewhat bemused to stumble on Ada's version of "not equals": /=
> 
> I'm curious about its derivation or the reason behind the lexography.
> (Perhaps a desire to use common keyboard characters?)

It's as close as you can get to the normal maths symbol ("=" with a
slash through it) in 7-bit Ascii (which was the standard when Ada was
designed).  I seem to recall a suggestion in the Ada 83 Rationale
suggesting that programs for printing Ada code could print it as
"/", backspace, "=", thus producing a maths not-equal sign.

Nowadays there are programs that print "/=" and "<=" and so forth in the
proper maths way.  For example, a2ps has modes for Ada, C, etc, that can
do that sort of thing.

Ada is descended from Pascal, which uses "<>" for not-equal.
That's pretty ugly, IMHO, and I'm glad Ada didn't mimic it.
For integers, "less than or greater than" is the same as "not equal",
but many types have a not-equal operator but no less-than, etc.

- Bob



  parent reply	other threads:[~2002-11-06 17:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 16:12 Where did /= come from? Programmer Dude
2002-11-06 16:50 ` Preben Randhol
2002-11-06 17:25   ` Programmer Dude
2002-11-07  9:31     ` Preben Randhol
2002-11-07 11:19       ` David C. Hoos, Sr.
2002-11-07 11:23         ` Preben Randhol
2002-11-07 22:56       ` Programmer Dude
2002-11-08  9:43         ` Preben Randhol
2002-11-08  9:53           ` Preben Randhol
2002-11-08 19:35             ` Programmer Dude
2002-11-06 17:33 ` Robert A Duff [this message]
2002-11-06 20:17   ` Programmer Dude
2002-11-07  6:50 ` Matthew Baulch
2002-11-07  9:21   ` Preben Randhol
2002-11-08  0:23     ` news.bctel.net
2002-11-08  9:45       ` Preben Randhol
2002-11-07 14:58   ` Ted Dennison
2002-11-07 15:29     ` Frank J. Lhota
2002-11-07 22:57       ` Programmer Dude
2002-11-08 17:06         ` Frank J. Lhota
2002-11-07 15:03   ` Robert A Duff
2002-11-07 18:02   ` Vinzent Hoefler
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox