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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,3b9cb18e1220c16c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-07 16:24:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.bc.tac.net!news.bc.tac.net!not-for-mail From: "news.bctel.net" Newsgroups: comp.lang.ada References: <3DC93F8B.9E28FD15@mmm.com> Subject: Re: Where did /= come from? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Thu, 7 Nov 2002 16:23:19 -0800 NNTP-Posting-Host: 207.102.214.252 X-Complaints-To: news@bc.tac.net X-Trace: news.bc.tac.net 1036715065 207.102.214.252 (Thu, 07 Nov 2002 16:24:25 PST) NNTP-Posting-Date: Thu, 07 Nov 2002 16:24:25 PST Xref: archiver1.google.com comp.lang.ada:30563 Date: 2002-11-07T16:23:19-08:00 List-Id: I think Ada could be more consistent regarding "/=". consider following invariant expressed in C and Ada C: !(A==B) same as (A != B) Ada: not (A = B), but (A not = B) is incorrect syntax. Alexei. "Preben Randhol" wrote in message news:slrnaskc44.rf.randhol+news@kiuk0152.chembio.ntnu.no... > Matthew Baulch wrote: > > > > I'm not advocating C when I say this, but != makes far more sense than /= > > lexically speaking. In C, the Negative of a bool is retrieved with !foo. > > In Ada, not foo. So I believe that K&R got it right using the != operator > > for 'not equal'. Ada on the other hand doesn't use the ! operator and "not > > equal" is too clumsy so it could be far worse than '/='. > > Well you can argue that they got it wrong when they chose ! in stead of > not and = instead of := and == in stead of = ;-) > > -- > Preben Randhol -------------------- http://www.pvv.org/~randhol > �.., chaos is found in greatest abundance wherever order is being > sought. It always defeats order, because it is better organized.� > -- Interesting Times, Terry Pratchett