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: a07f3367d7,e96fdf9557794655 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!r36g2000vbn.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Yannick_Duch=EAne_Hibou57?= Newsgroups: comp.lang.ada Subject: Re: Ada.Directories.Base_Name and dot files Date: Wed, 7 Oct 2009 07:46:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4acc8c20$0$284$14726298@news.sunsite.dk> NNTP-Posting-Host: 77.198.58.37 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254926805 5762 127.0.0.1 (7 Oct 2009 14:46:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Oct 2009 14:46:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r36g2000vbn.googlegroups.com; posting-host=77.198.58.37; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8603 Date: 2009-10-07T07:46:45-07:00 List-Id: Hi Thomas, There was somewhat similar discuss some times ago : http://groups.google.com/group/comp.lang.ada/browse_thread/thread/31af760e9= 39556ef?hl=3Dfr# It seems that your Ada implementation (the behavior is left as implementation defined in some areas) defines base file name as everything before the last dot (and the extension is then every thing after the last dot). This is something with which I fully agree. But what about (another question) a full file name like =93 my- page.fr.html =94 ? What is the base name ? Can you guess ? Well, the UNIX basename command will give you something, the Windows OS will tell you it is =93 my-page.fr =94 and a web server (not its host OS) may tell you it is =93 my-page =94, because with some convention, fr and html are both extensions and separated unordered extensions (ex. =93 my-page.html.fr =94 would be interpreted as the same as=93 my-page.fr.html =94). You see how it may be legitimately variable depending on legitimate conventions ? Did you run your tests on Windows ? I suppose most of Ada implementation defined behavior are inspired from that of the host OS (possibly). I would like to say : when in any particular area, you need a particular specification which is not of concerns with the fundamentals of the language design, don't hesitate to design your own dedicated package. You have some strong requirements about what the interpretation of file names should, and probably can't expect Ada always agree with this kind of level of details : the best is to design your own interpretation function. You known, it appears that a lot of peoples do that (especially with files by the way), and Ada designed programs are far from only made up of Ada's standard packages