From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: What about a glob standard method in Ada.Command_Line ?
Date: Thu, 2 Sep 2010 22:47:25 +0200
Date: 2010-09-02T22:47:22+02:00 [thread overview]
Message-ID: <156g0ohiz4ark$.1lg5lhsk23wlk.dlg@40tude.net> (raw)
In-Reply-To: i5otnt$edk$1@munin.nbi.dk
On Thu, 2 Sep 2010 14:25:46 -0500, Randy Brukardt wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
> news:198k7jlp1nvhi$.1mq6mu1iorkpi$.dlg@40tude.net...
> ...
>> There are other self-evident requirements. But since it seems that nobody
>> actually uses Ada.Directories, there will be no pressure on the ARG to fix
>> it any soon.
>
> This is getting silly. I use Ada.Directories heavily in all of my programs;
> and I used Claw.Directories (on which it is based) for years before that.
That wonders me, because I really see no task, which could be accomplished
with Ada.Directories in a portable way. This is an important point, because
if I would not care about portability I just would use Windows or Linux API
rather than Ada.Directories. I have no idea if GNAT Ada.Directories
actually works under, say, Russian Windows with UCS-2, or for German
Windows with files named in Chinese UTF-16, but I am almost sure that
nobody even tried that.
> Perhaps there is no pressure to change it much because most
> users don't see any significant problems?
Yes, they see no problems because they don't use it.
> Using a private type for file names would be possible, but it would be way
> too hard to use;
I don't think so. It could be designed with an appropriate set of
operations like:
function "/" (Directory : Relative_Path; Name : Wide_Wide_String)
return Relative_Path;
etc. "a"/"b"/"c" is not much harder than "a/b/c". Anyway hard coded file
names appear only in sample programs. In production code a literal path
were unusable anyway, because it is non-portable. So it should be
Create (File, My_Documents_Directory / "text" / Text_Content);
which under Windows would yield file path encoded UTF-16:
"C:\Documents and Settings\Winnie the Pooh\My Documents\text.txt"
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2010-09-02 20:47 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 4:47 What about a glob standard method in Ada.Command_Line ? Yannick Duchêne (Hibou57)
2010-08-21 6:41 ` J-P. Rosen
2010-08-21 7:21 ` Yannick Duchêne (Hibou57)
2010-08-21 9:11 ` Pascal Obry
2010-08-22 19:00 ` J-P. Rosen
2010-08-22 19:29 ` Yannick Duchêne (Hibou57)
2010-08-23 23:06 ` Randy Brukardt
2010-08-24 0:02 ` Yannick Duchêne (Hibou57)
2010-08-24 0:24 ` Adam Beneschan
2010-08-24 10:27 ` Georg Bauhaus
2010-08-24 14:24 ` Dmitry A. Kazakov
2010-08-24 15:42 ` Georg Bauhaus
2010-08-24 16:04 ` Dmitry A. Kazakov
2010-08-24 17:10 ` Georg Bauhaus
2010-08-24 17:24 ` Georg Bauhaus
2010-08-24 18:42 ` Yannick Duchêne (Hibou57)
2010-08-24 18:51 ` Simon Wright
2010-08-24 17:41 ` Dmitry A. Kazakov
2010-08-24 21:32 ` Georg Bauhaus
2010-08-25 7:55 ` Dmitry A. Kazakov
2010-08-25 8:24 ` Yannick Duchêne (Hibou57)
2010-08-25 20:15 ` (see below)
2010-08-25 20:39 ` Yannick Duchêne (Hibou57)
2010-08-25 21:05 ` (see below)
2010-08-25 21:32 ` Yannick Duchêne (Hibou57)
2010-08-25 8:57 ` Georg Bauhaus
2010-08-25 9:28 ` Dmitry A. Kazakov
2010-08-25 11:09 ` Georg Bauhaus
2010-08-25 12:01 ` Dmitry A. Kazakov
2010-08-25 13:09 ` Georg Bauhaus
2010-08-25 13:30 ` Dmitry A. Kazakov
2010-08-25 14:20 ` Georg Bauhaus
2010-08-25 14:56 ` Dmitry A. Kazakov
2010-08-25 15:51 ` Georg Bauhaus
2010-08-25 16:46 ` Dmitry A. Kazakov
2010-08-25 18:44 ` Georg Bauhaus
2010-08-25 19:39 ` Dmitry A. Kazakov
2010-08-26 0:59 ` Georg Bauhaus
2010-08-26 8:49 ` Dmitry A. Kazakov
2010-09-02 19:25 ` Randy Brukardt
2010-09-02 20:47 ` Dmitry A. Kazakov [this message]
2010-09-02 19:08 ` Randy Brukardt
2010-09-02 20:48 ` Georg Bauhaus
2010-08-22 19:30 ` Yannick Duchêne (Hibou57)
2010-08-22 19:46 ` Dmitry A. Kazakov
2010-08-25 13:09 ` anon
2010-08-25 13:13 ` Georg Bauhaus
2010-08-25 13:28 ` J-P. Rosen
2010-08-25 20:29 ` Yannick Duchêne (Hibou57)
2010-08-25 14:14 ` Jeffrey Carter
2010-08-25 21:37 ` anon
2010-08-26 8:21 ` J-P. Rosen
2010-08-26 16:29 ` anon
2010-08-26 20:34 ` Yannick Duchêne (Hibou57)
2010-08-27 4:40 ` Yannick Duchêne (Hibou57)
2010-08-27 12:10 ` J-P. Rosen
2010-09-01 8:08 ` Ada compilers and Ada 2005 (was: What about a glob standard method in Ada.Command_Line ?) Georg Bauhaus
2010-09-01 9:45 ` Ada compilers and Ada 2005 Pascal Obry
2010-09-01 10:28 ` J-P. Rosen
2010-09-02 19:37 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox