comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: What about a glob standard method in Ada.Command_Line ?
Date: Wed, 25 Aug 2010 09:55:14 +0200
Date: 2010-08-25T09:55:12+02:00	[thread overview]
Message-ID: <bxz3ymdyul62$.16pl56dd68msl.dlg@40tude.net> (raw)
In-Reply-To: 4c743a59$0$6893$9b4e6d93@newsspool2.arcor-online.net

On Tue, 24 Aug 2010 23:32:15 +0200, Georg Bauhaus wrote:

> Dmitry A. Kazakov wrote:
> 
>>> Is there an OS that reflects a file's content in its path?
>> 
>> MS-DOS, Windows, VMS, RSX-11
> 
> (These purport to reflect the file's content in the file name
> (which by habitual formalism is also a path...),
> but they don't.  Just open a file named README.DOC and be
> surprised that it is plain text.

Weakly typed is what this means. Nevertheless it is the path which is
supposed to identify the content type.

> Open a file ending in .AVI
> and see if this gets you anywhere.  File name extensions as
> file content descriptors are technically obsolete but they are
> still sold as important because some MS heads think
> it gives them best returns, people are used to them, everyone
> can profit from what programmers find useful, they are simple,
> etc.)

They are not obsolete, in fact they won against Unix's flabby and
disordered attempts to offer anything useful instead. The problem is that
they are not enforced, so weak typing: you think it is a document?
Surprise, surprise! Another problem is that there should be no files at all
and how should look like the naming scheme in an OO OS, nobody cares. 

>> Does the wildcard pattern "R*"
> 
> In what RE syntax?

It is a wildcard pattern. Wildcards is the most frequently used pattern
language.

* matches any, maybe empty, sequence of characters. Sometimes ? or % is
introduced, to mach exactly one character. 

>  > match "readme"? Does it match "R�cken", when
>> � is (16#c3#, 16#bc#) (UTF-8)?
> 
> When the Pattern_Type is properly defined, there are no questions.

How do define it properly? Does it match Latin-1's �, UTF-8's �, UTF-16's
�, UTF-32's �? Don't you get that it cannot be done without abstracting
*encoding* away?

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



  reply	other threads:[~2010-08-25  7:55 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 [this message]
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
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