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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5bcc293dc5642650 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.38.134 with SMTP id g6mr23147385pbk.6.1318810533018; Sun, 16 Oct 2011 17:15:33 -0700 (PDT) Path: d5ni18860pbc.0!nntp.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 16 Oct 2011 19:15:30 -0500 Date: Sun, 16 Oct 2011 20:15:11 -0400 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> <418b8140-fafb-442f-b91c-e22cc47f8adb@y22g2000pri.googlegroups.com> <1gzuyf8eg0o0k.7yo8q1lqfiyr.dlg@40tude.net> In-Reply-To: <1gzuyf8eg0o0k.7yo8q1lqfiyr.dlg@40tude.net> Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-3lcv8WfpjOtLYNP+X+LJTBXqFWlN6c26v+BR1fvnn5YVmA0BXzowICQW6jEMA3ewRP1E1/fWy05MD51!KlDpcFn7RCS6wgLWR/7bGzfUEjN8T5FF4LEu7oxHp57TNb+RPq6FhqHSBlA48Fc= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3111 Xref: news2.google.com comp.lang.ada:13984 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-10-16T20:15:11-04:00 List-Id: On 2011-10-15 10:47, Dmitry A. Kazakov wrote: > And it is just silly to make the point that Ada programs should read/write > only files created by other Ada programs [compiled by the same compiler, I > guess]. It's not that silly. In order to talk sensibly about files the standard needs to define a model of "file" and, in this case even "file system." This needs to be a model that will be applicable to the widest range of platforms possible. Such is the nature of a standard. Thus the standard model of "file" and "file system" will be a simplified abstraction of the real thing on any particular system. A portable program can only make use of that simplified abstraction if it expects to remain portable. If other files on the system also conform to that simplified model, that is good. A portable program will be able to manipulate them. However, if a program wishes to manipulate all files on a particular system, with their full generality, system-specific techniques are going to be necessary. For example, I don't believe the Ada standard allows one to access information about a file's owner. Yet every file on my Linux system has an owner. If I want to write a portable Ada program I have to live without that information. If the Ada standard goes on to say that I can't access files with names containing "exotic" characters, how is that any different in principle? I can appreciate that accessing files with Unicode names might be a useful thing to do in a standard program. What happens when such a program tries to create files with such names on a system that doesn't support them? I suppose a solution could be found, but I can also see how it would get ugly. Peter