comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada.Directories
Date: Sun, 21 Oct 2007 09:40:01 +0200
Date: 2007-10-21T09:40:06+02:00	[thread overview]
Message-ID: <zym8ym0u7d8o$.1q6cagmgthmna.dlg@40tude.net> (raw)
In-Reply-To: 1192912525.922514.185180@q3g2000prf.googlegroups.com

On Sat, 20 Oct 2007 13:35:25 -0700, Maciej Sobczak wrote:

> On 20 Pa , 21:40, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> wrote:
> 
>> 2. Why Full_Name of the Directory_Entry corresponding to ".." does not
>> render the true name of? Can the same file have different full names?
>
> Of course. They are usually called "links".

"." is not a hard/soft link, as it cannot be removed. Soft links are all
determinable. Even with hard links any file system is ADG, with ". " it is
not.

> Add "mount points" and the
> game is even more funny.

These are determinable as well.

> In general, there is no such a thing as a "true name" of a file and if
> there are many there is often no way to assign different priorities
> for them.

See RM A.16 which for Containing_Directory explicitly rules that if the
file system is not a forest, then Containing_Directory still returns a
value. That in effect defines a canonic full path for any Directory_Entry.
RM also does not hesitate to order that full names of abbreviations should
be meaningful.

So I think it also should advise implementations to remove "." and ".."
mess, when possible. At least in order to honor:

Compose (Containing_Directory (X), Simple_Name (X)) = X

(It makes no sense to define Containing_Directory without keeping the file
system view forest.)

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2007-10-21  7:40 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20  9:21 Ada.Directories Dmitry A. Kazakov
2007-10-20 18:43 ` Ada.Directories anon
2007-10-20 19:40   ` Ada.Directories Dmitry A. Kazakov
2007-10-20 20:35     ` Ada.Directories Maciej Sobczak
2007-10-21  7:40       ` Dmitry A. Kazakov [this message]
2007-10-21 13:05         ` Ada.Directories Jacob Sparre Andersen
2007-10-21 13:26           ` Ada.Directories Dmitry A. Kazakov
2007-10-21 15:29             ` Ada.Directories Markus E L
2007-10-21 15:38             ` Ada.Directories Jacob Sparre Andersen
2007-10-21 17:19             ` Ada.Directories Martin Krischik
2007-10-21 18:52               ` Ada.Directories Dmitry A. Kazakov
2007-10-21 20:32                 ` Ada.Directories Markus E L
2007-10-21 23:52         ` Ada.Directories Robert A Duff
2007-10-22 11:08         ` Ada.Directories Harald Korneliussen
2007-11-15 11:44           ` Ada.Directories Markus E L
2007-11-16 13:27             ` Ada.Directories Dmitry A. Kazakov
2007-11-16 16:48               ` Ada.Directories Martin Krischik
2007-11-16 18:47                 ` Ada.Directories Larry Kilgallen
2007-11-16 20:35                   ` Ada.Directories Martin Krischik
2007-11-16 19:00                 ` Ada.Directories Dmitry A. Kazakov
2007-10-21  1:25     ` Ada.Directories anon
2007-10-20 22:36   ` Ada.Directories Larry Kilgallen
2007-10-22 18:56 ` Ada.Directories Adam Beneschan
2007-10-23  9:04   ` Ada.Directories Peter Hermann
2007-10-23 12:07     ` Ada.Directories Larry Kilgallen
2007-10-23 13:01       ` Ada.Directories Peter Hermann
2007-10-23 16:08       ` Ada.Directories Robert A Duff
2007-10-23 17:11         ` Ada.Directories Larry Kilgallen
2007-10-24  0:55   ` Ada.Directories Brian May
replies disabled

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