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!news1.google.com!news.glorb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool2.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-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4c6f9837$0$5420$ba4acef3@reader.news.orange.fr> <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> Date: Wed, 25 Aug 2010 09:55:14 +0200 Message-ID: NNTP-Posting-Date: 25 Aug 2010 09:55:12 CEST NNTP-Posting-Host: 660ee69d.newsspool1.arcor-online.net X-Trace: DXC=QQ\aO<6UeB1RLigj];iP=8ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2RUbKm`amj0>[6LHn;2LCV>[n6MO<8cKk7Sfh;_? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13714 Date: 2010-08-25T09:55:12+02:00 List-Id: On Tue, 24 Aug 2010 23:32:15 +0200, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: > >>> Is there an OS that reflects a file's content in its path? >> >> MS-DOS, Windows, VMS, RSX-11 > > (These purport to reflect the file's content in the file name > (which by habitual formalism is also a path...), > but they don't. Just open a file named README.DOC and be > surprised that it is plain text. Weakly typed is what this means. Nevertheless it is the path which is supposed to identify the content type. > Open a file ending in .AVI > and see if this gets you anywhere. File name extensions as > file content descriptors are technically obsolete but they are > still sold as important because some MS heads think > it gives them best returns, people are used to them, everyone > can profit from what programmers find useful, they are simple, > etc.) They are not obsolete, in fact they won against Unix's flabby and disordered attempts to offer anything useful instead. The problem is that they are not enforced, so weak typing: you think it is a document? Surprise, surprise! Another problem is that there should be no files at all and how should look like the naming scheme in an OO OS, nobody cares. >> Does the wildcard pattern "R*" > > In what RE syntax? It is a wildcard pattern. Wildcards is the most frequently used pattern language. * matches any, maybe empty, sequence of characters. Sometimes ? or % is introduced, to mach exactly one character. > > match "readme"? Does it match "R�cken", when >> � is (16#c3#, 16#bc#) (UTF-8)? > > When the Pattern_Type is properly defined, there are no questions. How do define it properly? Does it match Latin-1's �, UTF-8's �, UTF-16's �, UTF-32's �? Don't you get that it cannot be done without abstracting *encoding* away? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de