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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,429176cb92b1b825 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: AWS Coding Styles (and about boring plain-linear text files in the end) Date: Tue, 18 Jan 2011 07:10:09 +0100 Organization: Ada @ Home Message-ID: References: <3077fffa-eed7-4763-8bca-9ac3bb0a41e1@o14g2000prn.googlegroups.com> NNTP-Posting-Host: IbwjOtp6CRWK4RAOHu6GbA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/11.00 (Win32) Xref: g2news1.google.com comp.lang.ada:16503 Date: 2011-01-18T07:10:09+01:00 List-Id: Le Tue, 18 Jan 2011 01:58:31 +0100, Adam Beneschan a = =C3=A9crit: > On Jan 16, 9:07 pm, Yannick Duch=C3=AAne (Hibou57) > wrote: > >> In =E2=80=9C8 Packages and Visibility Rules=E2=80=9D : >> >> > Do not with two times the same unit, always use the >> > deepest child unit to with. For example do not write: >> > with Ada.Strings; >> > with Ada.Strings.Unbounded; >> > but the equivalent form: >> with Ada.Strings.Unbounded; >> >> I always do the opposite. I feel it is clearer if I >> refer to the parent unit. If I don't, I do not withed >> the parent unit (i.e. I state something about usage in >> the withed declarations). > > My preference is to say "with Ada.Strings;", even if I am also > with'ing Ada.Strings.Unbounded, if (and only if) I am referring to > something actually declared in Ada.Strings (such as > Ada.Strings.Direction). I think that makes things clearer. I can't > really imagine why anyone would think it's a bad idea to say "with > Ada.Strings;" in that case. That is indeed what I was trying to explain. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]