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-08 02:57:10 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.belwue.de!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: Sat, 08 Nov 2003 11:56:59 +0100 Organization: Cablecom Newsserver Message-ID: <3FACCBFB.9D288CF2@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> NNTP-Posting-Host: dclient80-218-90-97.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newshispeed.ch 1068289026 9078 80.218.90.97 (8 Nov 2003 10:57:06 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sat, 8 Nov 2003 10:57:06 +0000 (UTC) X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:2253 Date: 2003-11-08T11:56:59+01:00 List-Id: Preben Randhol: > Well I usually write it like this: > > with Gdk.Types.Keysyms; use Gdk.Types.Keysyms; > with Gtk.Accel_Group; use Gtk.Accel_Group; > with Gtk; use Gtk; > with Glib; use Glib; > with Gdk.Types; use Gdk.Types; > with Gtkada.Handlers; use Gtkada.Handlers; > with Gtk.Enums; use Gtk.Enums; > with Program_Intl; use Program_Intl; > with Window.Callbacks; > with Program_Callbacks; > with Settings.Gui; > with Welcome; > with Examine; > with Result; > with Listing; > with Listing.Setup; > with Setup; > with Gac.Help; > > and I sort it so that all the with use pairs comes first. > > I find that nice and readable. I agree that it's an optimum, but under the constraint of the present syntax. I would be very happier if I could have it so: [with and ]use Gdk.Types, Gdk.Types.Keysyms, Gtk, Gtk.Accel_Group, Gtk.Enums, Gtkada.Handlers, Glib, Program_Intl; with Window.Callbacks, Program_Callbacks, Settings.Gui, Welcome, Examine, Result, Listing, Listing.Setup, Setup, Gac.Help; Wouldn't you ? It's nicer, a bit easier to manage and hopefully the title of the unit below will appear already on the first page of a listing... ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!