Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #12542
| Path | csiph.com!aioe.org!5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org.POSTED!not-for-mail |
|---|---|
| From | "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> |
| Newsgroups | comp.programming |
| Subject | Re: Reading command line in Pascal |
| Date | Thu, 6 May 2021 11:55:57 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 55 |
| Message-ID | <s70efc$1ogj$1@gioia.aioe.org> (permalink) |
| References | <s63oc3$v7a$1@gioia.aioe.org> <58b57a04-588e-4a77-afd2-34ef4ef27775n@googlegroups.com> <s63uj0$1nih$1@gioia.aioe.org> <s6438e$r1e$1@dont-email.me> <s6eod7$1cbj$3@gioia.aioe.org> <s6unlj$6cq$1@dont-email.me> <W1OkI.296390$zEva.194901@fx20.ams4> |
| NNTP-Posting-Host | 5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
| Content-Language | en-US |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com comp.programming:12542 |
Show key headers only | View raw
On 2021-05-06 10:46, Melzzzzz wrote: > On 2021-05-05, Alf P. Steinbach <alf.p.steinbach+usenet@gmail.com> wrote: >> On 29.04.2021 18:55, Peter wrote: >>> David Brown wrote: >>>> On 25/04/2021 16:33, Peter wrote: >>>>> Öö Tiib wrote: >>>>>> On Sunday, 25 April 2021 at 15:47:04 UTC+3, Peter wrote: >>>>>>> How, in standard Pascal (ISO/IEC 7185:1990), does one read the >>>>>>> command line? >>>>>> >>>>>> One does not as that standard does not have concept of command line. >>>>> >>>>> Yet another example of the language's silliness! >>>> >>>> It is not an "example of silliness". It is simply not something covered >>>> in the standard, because different Pascal implementations need >>>> significantly different ways of getting command line information (and >>> >>> C manages. >> >> Unfortunately, C does not manage. >> >> That's not entirely the C standard's fault, because it provides the >> ability, just in a way (`char` based string arguments of `main`) that >> until June 2019, and perhaps also after, was impractical in Windows. >> >> All extant C implementations in Windows fail to encode the `main` >> arguments as UTF-8, so these arguments cannot faithfully represent a >> command line with e.g. filenames with international characters. >> >> That doesn't mean that the logic of your response is incorrect, nor the >> intended meaning: it /can/ be done. >> >> You just have an incorrect perception of the state of C. >> >> If the first Pascal standard (disclaimer: I'm unfamiliar with it) had >> standardized command line access just as C, then most likely Pascal >> would have been in the same pit of backward compatible silliness as C. >> >> So in a way it was good that the Pascal standard did not address that issue. > > Windows is broken, it's not C standards fault. It is debatable (Windows has a POSIX layer, BTW). But, let you need to parse the command line (or lines) in a certain way, you could do that in Windows, but out of luck in UNIX. And as we all are programming rather in Whitespace (:-)), how would you design a Whitespace command line calculator? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-25 13:47 +0100
Re: Reading command line in Pascal Öö Tiib <ootiib@hot.ee> - 2021-04-25 07:23 -0700
Re: Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-25 15:33 +0100
Re: Reading command line in Pascal David Brown <david.brown@hesbynett.no> - 2021-04-25 17:52 +0200
Re: Reading command line in Pascal "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-04-26 07:50 +0200
Re: Reading command line in Pascal David Brown <david.brown@hesbynett.no> - 2021-04-26 08:33 +0200
Re: Reading command line in Pascal "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-04-26 10:21 +0200
Re: Reading command line in Pascal David Brown <david.brown@hesbynett.no> - 2021-04-26 10:46 +0200
Re: Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-29 17:54 +0100
Re: Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-29 17:52 +0100
Re: Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-29 18:44 +0100
Re: Reading command line in Pascal Peter <peterxpercival@hotmail.com> - 2021-04-29 17:55 +0100
Re: Reading command line in Pascal "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2021-05-05 20:20 +0200
Re: Reading command line in Pascal Melzzzzz <Melzzzzz@zzzzz.com> - 2021-05-06 08:46 +0000
Re: Reading command line in Pascal "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-05-06 11:55 +0200
Re: Reading command line in Pascal Melzzzzz <Melzzzzz@zzzzz.com> - 2021-05-06 10:06 +0000
Re: Reading command line in Pascal An iM <uavyuayve@hotmail.com> - 2021-08-27 11:27 -0700
csiph-web