Sujet : Re: Fixing a sample from K&R book using cake static analyser
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 24. Jun 2024, 01:29:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5aem2$j1nj$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.158 (Avdiivka; )
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.