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,6bf1c4b845bd2160 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: What about a glob standard method in Ada.Command_Line ? Date: Tue, 24 Aug 2010 02:02:02 +0200 Organization: Ada @ Home Message-ID: References: <4c6f9837$0$5420$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: 4DAVr2KhxAahdrPcUWQi/w.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/10.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13686 Date: 2010-08-24T02:02:02+02:00 List-Id: Le Tue, 24 Aug 2010 01:06:37 +0200, Randy Brukardt = a =C3=A9crit: > It would surely help to have some idea of what a "glob" is! And = > explained in > some way which is not specific to any particular OS. The old one inherited from first UNIX and which while old is still part = of = many core libraries (C, Python, Eiffel, Pascal, etc) and one of the most= = commonly used to handle command-line parameters, the one which as an = example, from a "/directory/*.adb" returns an array of strings for all t= he = files matching the pattern. This could be implemented based on the directories package, so provided = = for platforms where this package is available. If there is no trouble to= = keep Ada.Directories, there should be no matter to have a glob method. I= t = is at least as much platform independent as Ada.Directories is, as it ca= n = be based on it. I though about it while I was reading something about its little variant= s, = and in the while though =E2=80=9Cthis is so commonly used, and this is n= ot in Ada = standard methods, this may make Ada look a bit more friendly to people w= ho = do not know it if it was there=E2=80=9D. Here is the story. Not a critical item, just a possibly appealing item. -- = * 3 lines of concise statements is readable, 10 pages of concise = statements is unreadable ; * 3 lines of verbose statements may looks unuseful, 10 pages of verbose = = statements will never looks too much pedantic