From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: basic basic ada question
Date: Mon, 30 Oct 2006 12:46:59 +0100
Date: 2006-10-30T12:46:59+01:00 [thread overview]
Message-ID: <4545e633$1@news.post.ch> (raw)
In-Reply-To: <1jn310yr05w2m.16eg50ahksb2h$.dlg@40tude.net>
Dmitry A. Kazakov schrieb:
> On Sat, 21 Oct 2006 13:32:45 -0400, Robert A Duff wrote:
>
>> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>>
>>> Well, this is a more general issue than just command line arguments. As for
>>> me I consider the very idea of tokenizing as harmful. It is unfortunate
>>> that both C and Ada follow a wrong concept in the command line interface.
>>> Tokenizing is just wasting resources. It is also useless when you have
>>> delimiters other than spaces, keyed arguments, or some nested structure. I
>>> prefer always to parse the original source: the command line as a whole. I
>>> never copy anything.
>> How? On many operating systems, the "shell" or whatever will do all
>> kinds of command-line parsing before you can get your hands on it. On
>> Unix, it even expands wildcards (a rather bad design, IMHO).
>
> Surely depends on OS. In Windows there is GetCommandLine.
>
> I didn't criticise design of Ada.Command_Line, rather I did the idea of
> tokenizing, when the programmer acts like a hamster storing things here and
> there. Most of them he will never find again. I don't know whether
> "hamster" programming stems from UNIX or just influenced it. (:-))
>
> As for Ada.Command_Line, it could provide function Command return String;
> with a remark that depending on the OS its result might be not very
> authentic. [Neither Argument's result is.]
function Command return Wide_String;
function Command return Wide_Wide_String;
Martin
prev parent reply other threads:[~2006-10-30 11:46 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 14:30 basic basic ada question markww
2006-10-19 14:47 ` Georg Bauhaus
2006-10-19 15:10 ` markww
2006-10-21 10:29 ` Stephen Leake
2006-10-19 15:11 ` Dmitry A. Kazakov
2006-10-19 15:45 ` markww
2006-10-19 16:29 ` Gautier
2006-10-19 17:16 ` Dmitry A. Kazakov
2006-10-19 20:07 ` Jeffrey R. Carter
2006-10-19 22:20 ` Robert A Duff
2006-10-20 5:10 ` Jeffrey R. Carter
2006-10-20 7:13 ` Maciej Sobczak
2006-10-20 20:39 ` Jeffrey R. Carter
2006-10-20 7:25 ` Maciej Sobczak
2006-10-20 20:54 ` Jeffrey R. Carter
2006-10-19 21:30 ` James Alan Farrell
2006-10-19 23:03 ` Robert A Duff
2006-10-20 4:54 ` Jeffrey R. Carter
2006-10-20 7:53 ` Dmitry A. Kazakov
2006-10-20 8:17 ` Maciej Sobczak
2006-10-20 9:08 ` Dmitry A. Kazakov
2006-10-20 11:15 ` Maciej Sobczak
2006-10-20 12:19 ` Dmitry A. Kazakov
2006-10-20 12:38 ` Maciej Sobczak
2006-10-20 13:26 ` Dmitry A. Kazakov
2006-10-20 15:29 ` Robert A Duff
2006-10-20 17:37 ` Dmitry A. Kazakov
2006-10-20 20:59 ` Robert A Duff
2006-10-21 13:39 ` Dmitry A. Kazakov
2006-10-21 17:53 ` Robert A Duff
2006-10-22 8:45 ` Dmitry A. Kazakov
2006-10-23 7:45 ` Maciej Sobczak
2006-10-23 9:21 ` Dmitry A. Kazakov
2006-10-23 14:30 ` Maciej Sobczak
2006-10-23 15:08 ` Dmitry A. Kazakov
2006-10-23 15:49 ` Robert A Duff
2006-10-24 7:34 ` Dmitry A. Kazakov
2006-10-20 19:04 ` Simon Wright
2006-10-20 15:27 ` Robert A Duff
2006-10-20 17:37 ` Dmitry A. Kazakov
2006-10-20 21:00 ` Jeffrey R. Carter
2006-10-21 8:19 ` Dmitry A. Kazakov
2006-10-21 17:32 ` Robert A Duff
2006-10-22 8:45 ` Dmitry A. Kazakov
2006-10-30 11:46 ` Martin Krischik [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox