Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c Subject: Re: Fixing a sample from K&R book using cake static analyser Date: Mon, 24 Jun 2024 00:29:55 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <20240623022343.ec355c69a3d9eb03ad4a50f2@gmail.moc> <878qywq7ou.fsf@bsb.me.uk> <20240624013337.36fdb40f0766c6e1c8ce67c7@gmail.moc> <87tthjnsdt.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 24 Jun 2024 02:29:55 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3048fea01d51f9337586ac8e02824e6c"; logging-data="624371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185RcDiVk3xdeWAmeC9Xg0m" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:Db5N56UL/n43AHNwIxmaSO9Yqlo= Bytes: 1664 On Mon, 24 Jun 2024 00:36:46 +0100, Ben Bacarisse wrote: > So far (with the exception of an example of tightly bound co-routines > being simulated in a single C function) I have not yet seen one that > can't [be done without goto]. Wouldn’t it be cool if C had continuations? I succeeded in implementing them in a PostScript-alike toy language I’ve been messing with (see my postings on comp.lang.postscript if you want to know more), and they weren’t that hard to do at all. Making proper use of them is another matter.