Article View: comp.lang.c
Article #851Re: Taming The Switch-Statement
From: fir
Date: Tue, 27 Oct 2026 12:10
Date: Tue, 27 Oct 2026 12:10
84 lines
5148 bytes
5148 bytes
fir pisze:
> bartc pisze:
>> On 27/10/2026 08:37, fir wrote:
>>> bartc pisze:
>>>> On 26/10/2026 22:37, David Brown wrote:
>>
>>>>> #define fir_switch _Bool flag = 1; {
>>>>> #define or_if(...) } if (__VA_ARGS__) { flag = 0;
>>>>> #define otherwise } if (!flag)
>>>>>
>>>>> Then Fir can write :
>>>>>
>>>>> fir_switch
>>>>> or_if (x % 2 == 0) printf("\n divides by 2");
>>>>> or_if (x % 3 == 0) printf("\n divides by 3");
>>>>> otherwise printf("\n does not divide by 2 or 3");
>>>>>
>>>>> I haven't tested the defines, and I think it is a terrible idea (it
>>>>> should at least be called "and_if"), but it comes very close to the
>>>>> syntax and semantics Fir appears to want.
>>>> It looks pretty good and it seems to work (the !flag needs the
>>>> reverse logic). The 'and_if' makes more sense too.
>>>>
>>>> But of course it's not good enough for fir; there's always something.
>>>
>>> blame the scienco fo doing just like tat
>>>
>>> (one solution is a solution untill you find better one) ..im just
>>> doing science here so its science to blame, i got no problem with that
>>
>> I've no idea what you mean. And I've no idea what it is you're
>> actually after. I doubt anyone has. I doubt /you/ do!
>>
>> You suggest some new statement type, in a C language forum, somebody
>> shows how to implement it in standard C, but your response is:
>>
>> "blame the scienco fo doing just like tat"
>>
>> Not:
>>
>> "Wow, thanks! That's perfect."
>>
>> My guess is that you're not interested in actual solutions. You're
>> just thinking up one random idea after another. You don't care for
>> anyone else's opinion or input.
>>
> as to ideas I got an idea. Is your goal to stir up trouble here
>
im not tsure as this translation - in polish it is "robić piane" (make
foam), "bić piane" (it is making nonsense fights/tryin to make nonsense
fights/rumbles) like some drunkyard in a bar
generalli is like i say sin 90 degrees is 1 and some come say "i dont
understand it!" "i sucpect your goal is bla bla bla" "i dont know what
youre after" ..."you say that but later you get bored and will go say
something other!"
its kinda limitedly preposterous and funny but if it consumes hours its
timewaste and making useles foam (over wuite scientific statements here )
youre like more interesting to make foam instead of core topics -
a bit of foam is not always something totally bad (depends) but
if it takes hours i become pity for hours wasted where i could generate
models or write some procedures or just rest
> coz what yu say is like that and this is making bad content here
>
>
> science does that science is finding a solution then it finds another
> solution so you may blame science and say you got idea what science is
> actually after
>
>
> im just doin science - come to some conclusions than after that come to
> another conclusion...
>
> why your should problems with science should interest me? im here for
> doin science not to analyse personal problems of clc users
>
>
Technical Details
Message-ID:
<11bq4bn$1g0db$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> <11botqn$14bb7$1@dont-email.me> <11bpnsh$1ba6b$1@dont-email.me> <11bq389$1fik5$1@dont-email.me> <11bq3je$1fmbb$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 13:10:26 +0100 Organization: A noiseless patient Spider Lines: 84 Message-ID: <11bq4bn$1g0db$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> <11botqn$14bb7$1@dont-email.me> <11bpnsh$1ba6b$1@dont-email.me> <11bq389$1fik5$1@dont-email.me> <11bq3je$1fmbb$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Oct 2026 12:10:32 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1573291"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YyklBLE6Aq2rdiIiI8MdJMSx4ej/KO2g="; 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:M+7GM8t1nRDUUGlhVoZJvJjfS1c= sha256:Cd7YQ0U9qRSlrAa415GCyC3jZ8I0malTHF/YH5MP54w= sha1:8T4UAQFezU3IwM1XDP9I0lUSlxU= sha256:/ncZKTYxVCrr5ztGBnThkSdxO3acSWO4v4c8VQrN0oA= In-Reply-To: <11bq3je$1fmbb$1@dont-email.me>