Post B2AdAM9dYi6c0nDzWa by xChaos@f.cz
 (DIR) More posts by xChaos@f.cz
 (DIR) Post #B29yU4J7WkFAKawQ2i by error@mastodon.bsd.cafe
       2026-01-10T21:36:56Z
       
       3 likes, 4 repeats
       
       Look what I foundHere: http://pigeonsnest.co.uk/stuff/pigeons-device.html
       
 (DIR) Post #B2AdAM9dYi6c0nDzWa by xChaos@f.cz
       2026-01-11T07:03:41Z
       
       0 likes, 0 repeats
       
       @error do not try this at home?
       
 (DIR) Post #B2AdANjTgwMwuF081o by mig@mastodon.1984.cz
       2026-01-11T09:03:09Z
       
       0 likes, 0 repeats
       
       @xChaos @error switch(foo) {    case 0:        if (bar) {            case 1:                printf("Hello\n");        } else {            case 2:                printf("World\n");        }}
       
 (DIR) Post #B2AdOcCMhjXrpFIeVU by mig@mastodon.1984.cz
       2026-01-11T09:05:48Z
       
       0 likes, 0 repeats
       
       @xChaos @error switch(1) {    case 0:        if (false) {            case 1:                printf("Hello\n");        } else {            case 2:                printf("World\n");        }}=> Hello
       
 (DIR) Post #B2AdtqOLz3TKp3nYye by error@mastodon.bsd.cafe
       2026-01-11T09:11:22Z
       
       0 likes, 0 repeats
       
       @mig @xChaos this is counter-intuitive. Without break;s I thought it would print 'hello world'
       
 (DIR) Post #B2Aw5FnLfrEDyA50qm by lanodan@queer.hacktivis.me
       2026-01-11T12:35:09.019011Z
       
       0 likes, 0 repeats
       
       @error Heh yeah, seen that kind of switch-hack in musl's code ^^
       
 (DIR) Post #B2AxXX4Z85djcMBIFE by vera@gruene.social
       2026-01-11T12:51:26Z
       
       0 likes, 0 repeats
       
       @mig @xChaos @error This is so much more evil than goto.
       
 (DIR) Post #B2BAiKWtP5ILIzuTdA by tomjennings@tldr.nettime.org
       2026-01-11T15:19:05Z
       
       0 likes, 0 repeats
       
       @error I don't lurv switch(). I could never use a language with out it. The state machine constructor!
       
 (DIR) Post #B2BAjsiZmFgLd27AAa by tomjennings@tldr.nettime.org
       2026-01-11T15:19:24Z
       
       0 likes, 0 repeats
       
       @error But ok that's an atrocity.
       
 (DIR) Post #B2BB0ykKcKv5FR5X4S by error@mastodon.bsd.cafe
       2026-01-11T15:22:26Z
       
       0 likes, 0 repeats
       
       @tomjennings Are you the guy who started fidonet back in the days?
       
 (DIR) Post #B2BBErbvwYnFAimU1A by tomjennings@tldr.nettime.org
       2026-01-11T15:25:00Z
       
       0 likes, 0 repeats
       
       @error Yes. Please don't hold it against me.
       
 (DIR) Post #B2BBJLcEKQDHO93e4m by error@mastodon.bsd.cafe
       2026-01-11T15:25:46Z
       
       0 likes, 0 repeats
       
       @tomjennings I had a node there. Thank you for good old days
       
 (DIR) Post #B2BBOtexBIn4QCyg52 by mig@mastodon.1984.cz
       2026-01-11T15:26:48Z
       
       0 likes, 0 repeats
       
       @vera @xChaos @error it is really weird, compiled by clang on x86 does not print anything..
       
 (DIR) Post #B2BBYx0nZXRLiMzQ7k by error@mastodon.bsd.cafe
       2026-01-11T15:28:29Z
       
       0 likes, 0 repeats
       
       @mig @vera @xChaos can you show the full src code that you tried?
       
 (DIR) Post #B2BNOKQ7OnZsZxXAlk by newt@stereophonic.space
       2026-01-11T17:41:05.331858Z
       
       0 likes, 0 repeats
       
       @xarvos @novenary switch-case is basically goto in disguise, so yeah.
       
 (DIR) Post #B2DXgh9B1mpU8QvUFE by tomjennings@tldr.nettime.org
       2026-01-12T18:45:57Z
       
       0 likes, 0 repeats
       
       @error You're welcome!