Article View: comp.lang.c
Article #616Re: Taming The Switch-Statement
From: bart
Date: Tue, 20 Oct 2026 20:30
Date: Tue, 20 Oct 2026 20:30
35 lines
2534 bytes
2534 bytes
On 20/10/2026 20:24, Dan Cross wrote: > In article <11b7k22$2v8e5$1@dont-email.me>, bart <bc@freeuk.com> wrote: > The point is that the name you chose is meaningless to anyone > other than you. What's a PCL? Phase Control Line? Printer > Command Language? Photon Compressor Loop? Within the context of that application then it would be clear. You're just being overly hostile. (Within the app, PCL is the name of a bytecode language, and 'pcl' is a reference to a specific instruction. Next time I'll just use T for such examples, since the type is not relevant to the point. Although that didn't stop you seizing upon my F function.) >> Here is the one place I do remember using typedef for a function pointer >> (from an old project, not in C): >> >> type fnptr = ref proc >> >> repeat >> (fnptr(pcptr^))^() >> until stopped > More generally, I fail to see what this is trying to > demonstrate. Not much. It is just a rare example of my using aliases for function pointers. Because I suggested such aliases are often unnecessary and partly used in C to get around the fiddly type syntax that would arise.
Technical Details
Message-ID:
<11b8j17$3btus$1@dont-email.me>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!.POSTED!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b8f5h$67l$1@reader2.panix.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!.POSTED!not-for-mail From: bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Tue, 20 Oct 2026 21:30:32 +0100 Organization: A noiseless patient Spider Lines: 35 Message-ID: <11b8j17$3btus$1@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11b6224$2ejik$1@dont-email.me> <11b774o$2m8c9$3@dont-email.me> <11b7k22$2v8e5$1@dont-email.me> <11b8f5h$67l$1@reader2.panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 20 Oct 2026 20:30:32 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3536860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wgAr+ux5qsTZr4dA9GaGv"; posting-host="7c142682e3246f1a229ef2ca48617714" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:3UDjc4S7FxTo0v0g4kyp2rgZnOo= sha256:Tk22sVx5RLArbzcPn6fzDNa2UuWOpF+X8HywXi3bmp4= sha1:yrMOKcEq2017bLjE8Mqw1E5sh5U= sha256:20EQQP+H3heBPeeHgdcsOxRGbe8u5Tih3NuuBIs+0ao= Content-Language: en-GB In-Reply-To: <11b8f5h$67l$1@reader2.panix.com>