From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,782af4edeb84c4b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: basic basic ada question Date: Sat, 21 Oct 2006 13:32:45 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1161268231.345231.242170@m73g2000cwd.googlegroups.com> <4537bc65_1@newsfeed.slurp.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1161451965 4857 192.74.137.71 (21 Oct 2006 17:32:45 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 21 Oct 2006 17:32:45 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:BC6owDCBl3E2poqTMSGSVQwhP5c= Xref: g2news2.google.com comp.lang.ada:7119 Date: 2006-10-21T13:32:45-04:00 List-Id: "Dmitry A. Kazakov" 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). - Bob