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-Thread: a07f3367d7,31af760e939556ef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Interpretation of extensions different from Unix/Linux? Date: Thu, 13 Aug 2009 23:33:40 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <8a5f3b98-1c5a-4d47-aca7-e106d1223fa9@a26g2000yqn.googlegroups.com> <87skg7952j.fsf@jspa-nykredit.sparre-andersen.dk> <4a782233$0$30220$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1250224488 20121 69.95.181.76 (14 Aug 2009 04:34:48 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 14 Aug 2009 04:34:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feed.ac-versailles.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail Xref: g2news2.google.com comp.lang.ada:7753 Date: 2009-08-13T23:33:40-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:b4dn28zky4qe$.mrr68avem08a$.dlg@40tude.net... ... > Surprising is that Ada.Directories uses plain String for file names, > paths, > extension and patterns. This is clearly not an "Ada way" to deal with such > things. Why is that surprising? It has to be compatible with the file names accepted by the various Open routines in Ada.Text_IO, Ada.Direct_IO, etc. You could argue that String is the wrong choice for all of those things, and I think you'd be right, but it's irrelevant as we stuck with the Ada 83 definitions of the file I/O routines. (Adding overloaded ones would be unacceptibly incompatible, you wouldn't be able to use literals.) Randy.