🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #943

Re: Taming The Switch-Statement

#943
From: fir
Date: Wed, 28 Oct 2026 13:45
46 lines
2214 bytes
chine.bleu pisze:
> fir wrote:
>> case x%2==0 //2 4 6 8 10 12
>> case x%3==0 //3 6 9 12
>> default  // 1 5 7 11 13
> 
> What is your war using C reserved words in existing syntax?
> 

its for illustrartion

if
if
else

wouldnt go here so you must to define at last one or both
(you may also add or of use parenthesis

if
or
if
else

  would go

{if
if }else

alsoe would go )


case
case
default

are those defined to cover a behavuiour im talking about and it also
adressas a switch where in switch you got close meaning


so here i generally talk about some more abstract constructions and
show few possible syntaxes to cover it

for your information


Technical Details
Message-ID: <11bsuad$2f8j6$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-mail
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> <11bngj1$ifj5$1@dont-email.me> <11bnnbg$l7i1$1@dont-email.me> <11bntk0$nsbo$1@dont-email.me> <11bsq1t$2difu$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: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Wed, 28 Oct 2026 14:45:48 +0100
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <11bsuad$2f8j6$1@dont-email.me>
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>
 <11bngj1$ifj5$1@dont-email.me> <11bnnbg$l7i1$1@dont-email.me>
 <11bntk0$nsbo$1@dont-email.me> <11bsq1t$2difu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Oct 2026 13:45:49 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2597478"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+Bsp/lvnbw6sv+cIt5aFkiSFg2IYrhCtU="; posting-host="0c05802531f1a4b723135877d29c6d22"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:t22eUi5XBAKgKJQYCw2aOGq831o= sha256:iSBQFjreEaXlbweOw42U6P/OQJvyj26HFBqKP5d7POE=
	sha1:LTQD8yrveSxcBV/HLi2EC5zMizY= sha256:Qua88M/Ul7Rk0C6ev6UEXUs8fR5LArdu3WI1lNRMJyE=
In-Reply-To: <11bsq1t$2difu$1@dont-email.me>