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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: What about a glob standard method in Ada.Command_Line ? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4c739e76$0$6992$9b4e6d93@newsspool4.arcor-online.net> <152a2z5en4z2o$.xjsuqr7s8yak$.dlg@40tude.net> <4c73e859$0$6991$9b4e6d93@newsspool4.arcor-online.net> <4c73fcf6$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1jxm50y65grlo.sjyb9hm4y1xp$.dlg@40tude.net> <4c743a59$0$6893$9b4e6d93@newsspool2.arcor-online.net> <4c74db09$0$6890$9b4e6d93@newsspool2.arcor-online.net> <1r82cxcws3pc9$.r40m8l3ttil7$.dlg@40tude.net> <4c74f9f6$0$6772$9b4e6d93@newsspool3.arcor-online.net> <17drl4b1ko4iv.1eccfudluzl5h.dlg@40tude.net> <4c7515fc$0$7664$9b4e6d93@newsspool1.arcor-online.net> <4c752693$0$7656$9b4e6d93@newsspool1.arcor-online.net> <17uj112bzfc47$.1jlqotsp6zuup.dlg@40tude.net> <4c753c0c$0$6877$9b4e6d93@newsspool2.arcor-online.net> Date: Wed, 25 Aug 2010 18:46:13 +0200 Message-ID: NNTP-Posting-Date: 25 Aug 2010 18:46:11 CEST NNTP-Posting-Host: cc2e2bfa.newsspool1.arcor-online.net X-Trace: DXC=>7D`;VhIcib9kIfcjg:0fdic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbXeEk@>I_9Lh[6LHn;2LCVn[n6MOl7Z`2YRb^Vnd X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13733 Date: 2010-08-25T18:46:11+02:00 List-Id: On Wed, 25 Aug 2010 17:51:39 +0200, Georg Bauhaus wrote: > On 25.08.10 16:56, Dmitry A. Kazakov wrote: >> Certainly and without any doubt it is >> possible to provide an abstraction which would work for Posix, Unix, >> Windows, VMS, MacOS and name what OS. > > It is not actually possible to provide a common abstraction > for *new* and *existing* file names. While "broken", the file > names do exist. Just a few examples illustrating a variety of file > naming fun: > > - Names created in NTFS that end in a '.' > > - Two names in existing ext2 directories that contain > "mutually exclusive" characters (via incompatible encoding) > > - Names containing characters that are special in Windows but > not in POSIX. > > - Names with spaces in them You don't get the point. See A.13(9) > Wide_Wide_String can't cure these, It is, because any file name can be represented by Wide_Wide_String. >>> And since there is no single, well defined, >>> portable � for file names, >> >> It is same as to say that there is no portable Integer type. > > If in the real word, I/O of "broken" integer values is a > reality. What does this have to do with the point? You seem to wish file names checked statically. Does Ada.Directories this? Why then you pose this silly requirement? > Can't just raise an exception > because of a faulty name! See A.13(9) > Almost all WWW documents are broken by your taxonomy. > Google is rich... I don't understand what you are talking about. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de