Article View: comp.lang.c
Article #843Re: Taming The Switch-Statement
From: fir
Date: Tue, 27 Oct 2026 08:50
Date: Tue, 27 Oct 2026 08:50
38 lines
2570 bytes
2570 bytes
fir pisze:
> if(x>0) printf("right"); and if(x<w) printf("left"); else printf("
> outside");
this shows bytw one thing
such things as
if(x>0 and x<w) inside() else outside()
are limited becouse this reduces whole expresion in clase to one binary
so if you use such conventions as
if(x>0) and if(x<w)
of
if(x>0, x<w)
you gave more options to define predefined keywords like all/none/some/one
or even some my write its own function though as the function also
reduces it is then not possible in such case to do
if(x>0, x<w) all {} none {} some {}
it is add more branches at once
Technical Details
Message-ID:
<11bpok0$1bmge$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> <11bng23$iblc$1@dont-email.me> <11bngj1$ifj5$1@dont-email.me> <11bnnbg$l7i1$1@dont-email.me> <11bntk0$nsbo$1@dont-email.me> <11bnvbq$olbj$1@dont-email.me> <11bo02r$otr5$1@dont-email.me> <11bo0ul$pbso$1@dont-email.me> <11bo1bc$phlr$1@dont-email.me> <11bo86r$sgm6$1@dont-email.me> <11boaad$td13$1@dont-email.me> <11bobf0$tsad$1@dont-email.me> <11bodc6$ul1k$1@dont-email.me> <11bofl7$vjil$1@dont-email.me> <11bog1o$vhqi$2@dont-email.me> <11bohun$10fjv$1@dont-email.me> <11bokna$1192k$1@dont-email.me> <11bom51$11u3m$1@dont-email.me> <11bop90$12ukl$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: Tue, 27 Oct 2026 09:50:04 +0100 Organization: A noiseless patient Spider Lines: 38 Message-ID: <11bpok0$1bmge$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> <11bnvbq$olbj$1@dont-email.me> <11bo02r$otr5$1@dont-email.me> <11bo0ul$pbso$1@dont-email.me> <11bo1bc$phlr$1@dont-email.me> <11bo86r$sgm6$1@dont-email.me> <11boaad$td13$1@dont-email.me> <11bobf0$tsad$1@dont-email.me> <11bodc6$ul1k$1@dont-email.me> <11bofl7$vjil$1@dont-email.me> <11bog1o$vhqi$2@dont-email.me> <11bohun$10fjv$1@dont-email.me> <11bokna$1192k$1@dont-email.me> <11bom51$11u3m$1@dont-email.me> <11bop90$12ukl$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 27 Oct 2026 08:50:08 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1432078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vfncEJ76kH5FNt0ZwsJpdnZR/nRdd2uA="; posting-host="194c9e0146af9b1e3017ba4c59028341" 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:yekW8R24qfQzWYiVXrn+RZMij/8= sha256:6F3C6+e34zYAwfHdBqxYBffGOo38JBlGvmZz+y5GHok= sha1:/IBqj14hXBEgVKyQ4MSwGWwBNbg= sha256:PW9KScB0HmLWB61PMg1YJOj3n84UisaTaRv928c0qMw= In-Reply-To: <11bop90$12ukl$1@dont-email.me>