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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a50a3c40267219cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 10:29:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp-cust.primenet.com!news.streamgate.de!gerhard.nospam From: gerhard.nospam@bigfoot.de (Gerhard =?iso-8859-1?Q?H=E4ring?=) Newsgroups: comp.lang.ada Subject: Re: The caselessness is one of the things I like best! Date: Mon, 15 Oct 2001 19:29:26 +0200 Organization: Streamgate AG Message-ID: References: Reply-To: gerhard@bigfoot.de NNTP-Posting-Host: 213-196-68-75.hosts.streamgate.de X-Trace: news.streamgate.de 1003165683 20189 213.196.68.75 (15 Oct 2001 17:08:03 GMT) X-Complaints-To: news@streamgateag.de NNTP-Posting-Date: Mon, 15 Oct 2001 17:08:03 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14550 Date: 2001-10-15T19:29:26+02:00 List-Id: On Mon, 15 Oct 2001 17:00:03 GMT, tmoran@acm.org wrote: >> > If the only difference between two entities is the case, I think the >> > program will be very hard to maintain. >> >> True. The compiler probably should show a warning in this case. > In fact you can write a case sensitive Ada program, and the compiler >will in fact complain if you try to declare two entities where the only >difference is case. The only difference with C is that the compiler >doesn't warn you, but silently creates two separate entities. :) It's probably best described by an example what I mean with inconsistent casing. VAR n: Integer; BEGIN N := 5; I'd want to get a syntax error here. IIRC I can get GNAT to warn me about this and you will perhaps think that this is only a matter of style and best handled by tools apart from the compiler. Perhaps I'm irrational but Ada's behaviour here reminds me too much of BASIC. This is one of the rare points where Ada allows the programmer to do something stupid. Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0 public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 I happen to like strict languages wrt to s reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))