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,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-11 14:28:17 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.hispeed.ch!not-for-mail From: Gautier Write-only Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Tue, 11 Nov 2003 23:28:03 +0100 Organization: Cablecom Newsserver Message-ID: <3FB16273.680E16EE@fakeaddress.nil> References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FA3B412.AF3BEB96@fakeaddress.nil> <3FA6D275.924D5750@fakeaddress.nil> <1067951806.729117@master.nyc.kbcfp.com> <1068123815.335508@master.nyc.kbcfp.com> <3FAAB12E.C7593B45@fakeaddress.nil> <3FACCBFB.9D288CF2@fakeaddress.nil> NNTP-Posting-Host: dclient217-162-142-84.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newshispeed.ch 1068589696 21534 217.162.142.84 (11 Nov 2003 22:28:16 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Tue, 11 Nov 2003 22:28:16 +0000 (UTC) X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:2380 Date: 2003-11-11T23:28:03+01:00 List-Id: Preben Randhol: [...] > No, I wouldn't actually for these reasons: > > 1. It doesn't become more readable. > 2. It doesn't make it easier to change a with-ed package to a > with and use (or only use) package. > 3. It isn't a feature which will imporve the language IMHO. > 4. I find the way I wrote the wit and use more readable and easier to > modify (cut'n'paste, for example) > 5. It would totally break with Ada 95 (if use implicitly with a unit) If you mean that an Ada 95 couldn't compile an Ada 0Y-with-"[with and ]use" source, you are right. It is in the nature of improvements... There are still good Ada 83 compilers around that are unable to compile the least Ada 95 code with "Ada.Text_IO" etc., and we can live with it. > 6. Reason as stated in my signature. > > Now I'll continue my ada-suit for vim so I can share it to other vim > users as soon as possible. > > I'll make the with use macro now ;-) The writeability problem is small (since you can make a macro) compared to the readability and maintanability issue of the current syntax. ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!