Article View: comp.lang.c
Article #923Re: Taming The Switch-Statement
From: steve g
Date: Wed, 28 Oct 2026 06:27
Date: Wed, 28 Oct 2026 06:27
21 lines
2033 bytes
2033 bytes
bartc <bc@freeuk.com> writes:
> 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
be careful!
Technical Details
Message-ID:
<877bj2nxvt.fsf@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11ba02r$3pl5h$1@dont-email.me> <11bnfpm$i84l$1@dont-email.me> <11bng23$iblc$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!news.nrbbs.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 28 Oct 2026 06:27:02 +0000 From: steve g <Sgonedes1977@gmail.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement References: <119qf6l$2rmg3$1@dont-email.me> <11ba02r$3pl5h$1@dont-email.me> <11bnfpm$i84l$1@dont-email.me> <11bng23$iblc$1@dont-email.me> Date: Wed, 28 Oct 2026 02:27:02 -0400 Message-ID: <877bj2nxvt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:fDzf9+2yUPE1/CqSwY+AGgJfzKQ= MIME-Version: 1.0 Content-Type: text/plain Lines: 21 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-uc5a+Xlz+zDrcBUpBLrYCTwpNGBQhpPMvT414+8oDl18lgcditgWOIPRbqhs5WSe8MHolWJ/TVFTn/0!UvyTJ8Ro/b4RUkF88oxj38SM5UclxSuSLCkhtKKYWBjKL1Y= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40