comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.tsoh.plus-bug.bauhaus@maps.futureapps.de>
Subject: Re: Ada.Directories problems, a summary
Date: Fri, 02 Jan 2009 11:22:10 +0100
Date: 2009-01-02T11:22:11+01:00	[thread overview]
Message-ID: <495dead3$0$31877$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <17rohiaha9ome$.1gz45no0bqro2.dlg@40tude.net>

Dmitry A. Kazakov wrote:
> After experimenting with Ada.Directories I collected the issues I think
> must be addressed to make Ada.Directories more usable:
> 
> 1. Name encoding. Either String versions should be UTF-8 or else replaced
> with Wide_Wide_String ones.

Just for clarification, do you want ISO 10646 names to be used
in Ada program texts so that Ada.Directories can map the Ada
string names to file system names? (The file system using whichever
encoding seems fit?)


> 2. Name canonization / comparison functions. Presently it is impossible to
> compare files by names because the same file may have potentially an
> infinite number of names.

I suppose this refers to paths, such as full names, and includes 1.?
(E.g., if the OSs do not make unique ids available to the computer
user (such as i-nodes) it is unlikely that an application program could.
Does Apple have copyright on iNode?)


> 4. There should be a variant of Start_Search without the Directory
> parameter, in order to enumerate the roots of the file systems. For
> example, to find drive letters under Windows, network shares, mount points
> etc.

OTOH, if you know where to start strolling along that file system
grove, you have virtually named a virtual root...

> 5. The behavior of Exists must be specified for the case of mountable
> volumes. Presently GNAT implementation pops a message box under Windows.
> This should be outlawed.

What about "dynamic" behavior? An NFS server going away during
the mount operation, ...
IOW, what is special of this "availability property" when compared
to others such as a file being removed from the file system
after the program has opened the file?


> 7. Version number in addition to Containing_Directory, Base_Name and
> Extension. (Files have version numbers under VMS)

Not widespread.  A Child package maybe, provided by implementations?



  parent reply	other threads:[~2009-01-02 10:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 11:16 Ada.Directories problems, a summary Dmitry A. Kazakov
2009-01-01 13:47 ` Ivan Levashew
2009-01-01 14:15   ` Dmitry A. Kazakov
2009-01-02 14:22     ` Ivan Levashew
2009-01-02 14:49       ` Dmitry A. Kazakov
2009-01-02 22:33         ` Colin Paul Gloster
2009-01-03  9:08           ` Dmitry A. Kazakov
2009-01-05 10:01       ` Jean-Pierre Rosen
2009-01-02 22:57     ` Randy Brukardt
2009-01-03  9:39       ` Dmitry A. Kazakov
2009-01-06  1:23         ` Randy Brukardt
2009-01-06 10:41           ` Dmitry A. Kazakov
2009-01-06  1:23         ` Randy Brukardt
2009-01-01 13:56 ` Dmitry A. Kazakov
2009-01-01 14:05 ` Colin Paul Gloster
2009-01-01 14:29   ` Dmitry A. Kazakov
2009-01-01 20:41 ` anon
2009-01-02 11:22   ` Colin Paul Gloster
2009-01-02 10:22 ` Georg Bauhaus [this message]
2009-01-02 11:09   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox