Article View: comp.lang.c
Article #781Re: Taming The Switch-Statement
From: bartc
Date: Mon, 26 Oct 2026 12:11
Date: Mon, 26 Oct 2026 12:11
29 lines
1974 bytes
1974 bytes
On 26/10/2026 12:07, fir wrote:
> fir pisze:
>> if {} or if {} or if {} else {}
>
>
> this form in fact is not bad, it simply showst two things
>
> 1) you may use or outside the if clause (if this () can be named clause)
>
> 2) else in fact work on logical group but ias sole if is alos a case of
> logical group so else work on it sole in special case
>
> otherwiste thse keywords here if or and else are quite 'legit'
>
>
>
> if () {}
> or if () {}
> or if() {}
> else {}
>
>
> seems quite legit and it seem to ba a switch
Excellent. A great thing about this is, this can also be legal C, that
works now, if you just precede with this:
#define or else
Technical Details
Message-ID:
<11bng23$iblc$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> <11ba02r$3pl5h$1@dont-email.me> <11bnfpm$i84l$1@dont-email.me>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: bartc <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Mon, 26 Oct 2026 12:11:48 +0000 Organization: A noiseless patient Spider Lines: 29 Message-ID: <11bng23$iblc$1@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11ba02r$3pl5h$1@dont-email.me> <11bnfpm$i84l$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 26 Oct 2026 12:11:48 +0000 (UTC) Injection-Info: dont-email.me; logging-data="601772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0+U9e36jBaArpOZ9QPCkg"; posting-host="81ec4569ad44d616cf39a71786ebce1e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:t3HwVBkxfnIUH5hXxGblxezjUPk= sha256:o6ArwPTRT4szpefngK6wAQmaGNI2uNDLJkRmHbGz1Mg= sha1:jwLV38O9VF312nflwquQfZPRhhk= sha256:zQnZx1t4ZnnycRDVvZRMxN0bNjwzh1Ovu/poVtuPbN8= Content-Language: en-GB In-Reply-To: <11bnfpm$i84l$1@dont-email.me>