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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e55245590c829bef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!s4g2000yql.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: _Type vs no _Type Date: Wed, 3 Nov 2010 23:40:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <82zktq4n9b.fsf_-_@stephe-leake.org> NNTP-Posting-Host: 174.28.219.200 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1288852806 21593 127.0.0.1 (4 Nov 2010 06:40:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Nov 2010 06:40:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s4g2000yql.googlegroups.com; posting-host=174.28.219.200; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16176 Date: 2010-11-03T23:40:05-07:00 List-Id: On Nov 3, 11:28=A0pm, "Nasser M. Abbasi" wrote: > On 11/3/2010 2:29 PM, Simon Wright wrote: > > > Stephen Leake =A0writes: > > >> package RPG is > > >> =A0 =A0 type Weapon is (Broadsword, Catapult, Torpedo); > >> =A0 =A0 procedure Attack (Weapon : RPG.Weapon); > > >> end RPG; > > > Neat. Certainly worth bearing in mind. > > Sorry to jump in, I have not read everything in this thread, so may be > this was mentioned already. > > Isn't this whole subject a result of Ada being case insensitive? > > If Ada has been case sensitive, then one would write > > weapon : Weapon; > > and be done with it? > > That is one part of Ada I never liked, same for Fortran or any other > language which is not case sensitive. > > But nothing can be done about it, I know. > > --Nasser Despite that this SINGULAR case where case-sensitivity would solve the problem it COMPLETELY overlooks the many cases where case-sensitivity [and using it to conceptually-overload an identifier] introduces Bad Things. Consider this code: Type THIS is private; Procedure this( This: out THIS; THis : in THIS; THIs : in out THIS ); Upon *hearing* your boss say "There is a problem in the program with this; fix it." what "this" is he talking about? { Yes, I realize that no *sane* programmer would produce something like this, but isn't the continued popularity of C/C++ proof that there is a large chunk of programmers who are not sane? ;) }