Article View: comp.lang.c
Article #157Re: Taming The Switch-Statement
From: Keith Thompson
Date: Sat, 10 Oct 2026 23:44
Date: Sat, 10 Oct 2026 23:44
21 lines
2216 bytes
2216 bytes
Michael S <already5chosen@yahoo.com> writes:
> On Fri, 09 Oct 2026 19:17:35 -0700
> Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>
>>BCPL's predecessor, CPL,
>
> I fully agree with your post (plus have to add that "more structured
> switch" apart from new keyword(s) will need some new way to express
> common handler for several cases. Ada/VHDL solution of using | would
> not work in C for obvious reasons).
>
> But for sentence above I have a nitpick. CPL is an ancestor of BCPL,
> but not a predecessor. Historically BCPL was implemented before CPL. I
> am not even sure that CPL was ever implemented entirely.
Interesting. I've read some of the documents that describe CPL/BCPL/B,
but I'm not familiar with how they were actually implemented and used.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11aeilp$24k8m$5@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11ac0mi$19kfd$1@dont-email.me> <11ac2jv$1a84t$1@dont-email.me> <11ac783$1bkuo$1@kst.eternal-september.org> <20261010195051.00000594@yahoo.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Sat, 10 Oct 2026 16:44:57 -0700 Organization: None to speak of Lines: 21 Message-ID: <11aeilp$24k8m$5@kst.eternal-september.org> References: <119qf6l$2rmg3$1@dont-email.me> <11ac0mi$19kfd$1@dont-email.me> <11ac2jv$1a84t$1@dont-email.me> <11ac783$1bkuo$1@kst.eternal-september.org> <20261010195051.00000594@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 10 Oct 2026 23:44:58 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2248982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18B9fn0ZUjVzYgoCUJlzrN4"; posting-host="29efadadb268dc6914862df94b2a05d4" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:FEbzjyUVyi31oCCE79uCasAOquY= sha256:uHdeGC/3piasgg3ZBcz4cq5B98r9d84eEllDsHnVnzE= sha1:yW6EoXKDE689LOiBBJxZ90I8wLQ= sha256:9rwZOSWTAVKISJguymGBu8tWfHsFHjbhZ4VN5NlxmSk=