🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #388

Re: Taming The Switch-Statement

#388
From: Scott Lurndal
Date: Wed, 14 Oct 2026 14:35
12 lines
1507 bytes
bart <bc@freeuk.com> writes:
>On 13/10/2026 01:33, Keith Thompson wrote:
>> bart <bc@freeuk.com> writes:
>> [...]

>I've got a better idea. I added an extra keyword to my C compiler called 
>"breakloop". It's like 'break' but always works with the nearest 
>enclosing loop, even from inside switch.

It's hardly a new idea.  The 1967 BPL compiler at burroughs
supported 'EXITLOOP', 'EXITCOND', 'EXITCASE' and 'EXITBLOCK';
each with the expected semantics for the name.
Technical Details
Message-ID: <frMzS.2749$e_i.171@fx08.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <11agils$2s3tg$1@dont-email.me> <11ahpqi$38ir0$2@dont-email.me> <11ainqf$3kkvd$1@dont-email.me> <11aj73v$c2u$1@reader2.panix.com> <11ajcv8$3u33s$1@dont-email.me> <11aju80$28f2$6@kst.eternal-september.org> <11amecs$10eab$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!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Taming The Switch-Statement
Newsgroups: comp.lang.c
References: <119qf6l$2rmg3$1@dont-email.me> <11agils$2s3tg$1@dont-email.me> <11ahpqi$38ir0$2@dont-email.me> <11ainqf$3kkvd$1@dont-email.me> <11aj73v$c2u$1@reader2.panix.com> <11ajcv8$3u33s$1@dont-email.me> <11aju80$28f2$6@kst.eternal-september.org> <11amecs$10eab$1@dont-email.me>
Lines: 12
Message-ID: <frMzS.2749$e_i.171@fx08.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 14 Oct 2026 14:35:55 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 14 Oct 2026 14:35:55 GMT
X-Received-Bytes: 1273