Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <49c6471e4f5f44251e89ffefc207769430ea9bb4@i2pn2.org>
Deutsch   English   Français   Italiano  
<49c6471e4f5f44251e89ffefc207769430ea9bb4@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <fir@grunge.pl>
Newsgroups: comp.lang.c
Subject: freeform swich case
Date: Sun, 25 Aug 2024 12:53:21 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <49c6471e4f5f44251e89ffefc207769430ea9bb4@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 25 Aug 2024 10:53:27 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="3831664"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
X-Spam-Checker-Version: SpamAssassin 4.0.0



by freeform i thought something like
totally separate the function of switch and
teh function of case amd understand
it sepratelley

swich(a) menas something like select a (for later comparsions)
(though its not clear if it should select value or select
variable at this moment)

case(4) means coempare selected tith argument and
work like if


do

int a = rand()%10;

switch(a);
case(1) {}
case(2) {}
case(3) {}
case(4) {}
case(5) {}

is understood

but the question is the details, like mentioned
if select by value or by variable

switch(a);
case(1) {a++;}
case(2) {}
a--;
case(3) {a+=6;}
case(4) {}
case(5) {}

as it will work different then

such free form is somewhat low lewel than the normal
switch case imo..it also has no break but what it could
be seem if swich selects by value then probably break
is not needed as the other cases could be optimised
away (though  maybe not fully..) if switch is by variable
then maybe less

overally this switch is a mess but it seem to me that this kind
of free form  is better that the swich in c (though im not fully sure also)