Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Effect of CPP tags Date: Thu, 11 Jan 2024 16:23:12 -0800 Organization: None to speak of Lines: 35 Message-ID: <87o7drmmbz.fsf@nosuchdomain.example.com> References: <87ttnmnjdb.fsf@nosuchdomain.example.com> <87edepnich.fsf@nosuchdomain.example.com> <20240110133135.834@kylheku.com> <20240110182957.444@kylheku.com> <20240111081109.274@kylheku.com> <20240111133742.530@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="3cbd2312b6d5297cbffbebfe1ede6aac"; logging-data="3345601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iaWbHosy1nVhFZvipqqXK" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:H08OS/PP+2RUoeEOxYC46ERa4UQ= sha1:1uCyxQOMPtObfEhsKccLus3cGkY= Xref: csiph.com comp.lang.c:380054 bart writes: > On 11/01/2024 22:02, Kaz Kylheku wrote: >> On 2024-01-11, bart wrote: >> I worked with .BAT files in the MS-DOS era. I left that stuff behind >> just as the DOS era was coming to an end, and I went off to university. >> Over the years, I had only rare, minor interactions with batch files on >> Windows. >> it's a very poor scripting language, > > I used the word 'script' loosely. > > I make a distinction between command-languages, which generally have > only a linear sequence of commands, no looping or conditional code; > and proper scripting languages which are full languages. > > BAT files I consider command languages where you just write commands > A, B, C ... one after the other. BAT files can also have IF and FOR statements. The program that processes them, cmd.exe, is similar in many ways to a Unix shell, but with substantially different syntax. Both are also used to type commands interactively. Of course you can write BAT files with no control flow. You can do the same thing with Unix shell scripts. I presume the distinction you're making is useful for you, but it's not inherent in the tools. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Medtronic void Void(void) { Void(); } /* The recursive call of the void */