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-Thread: 103376,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.buerger.net!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: _Type vs no _Type Date: Fri, 05 Nov 2010 18:49:07 +0100 Message-ID: <87y697fyp8.fsf@mid.deneb.enyo.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: idssi.enyo.de 1288979347 29449 172.17.135.6 (5 Nov 2010 17:49:07 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:GDIlteR5tGfvOJimstUZVoMTuI8= Xref: g2news2.google.com comp.lang.ada:16245 Date: 2010-11-05T18:49:07+01:00 List-Id: * Shark8: > 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? Given that Ada allows you to write this: Type TΗIS is private; Procedure this( Τhis: out TΗIS; ΤΗis : in TΗIS; THIs : in out TΗIS ); if you really want to, I find this argument totally out of place in the Ada context. (In any case, a program which is provable correct, passes the compiler, and works as expected, can still be written in a bad style.) There is a considerable amount of wording in the standard to make the example above legal, so I guess some people feel really strongly about this language feature. And it interacts very badly with case insensitivity, by the way.