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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b9cb18e1220c16c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 09:36:10 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!uwm.edu!arclight.uoregon.edu!enews.sgi.com!micro-heart-of-gold.mit.edu!news.umass.edu!world!news From: Robert A Duff Subject: Re: Where did /= come from? User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 6 Nov 2002 17:33:57 GMT Content-Type: text/plain; charset=us-ascii References: <3DC93F8B.9E28FD15@mmm.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:30475 Date: 2002-11-06T17:33:57+00:00 List-Id: 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