On Tue, Jun 28, 2016 at 5:12 PM, Lawrence D’Oliveiro
<lawrenced...@gmail.com> wrote:
> <https://github.com/ldo/dvd_menu_animator/blob/master/spuhelper.c>.

do { /* once */
   if (error) break;
   ...
} while (false);
do_cleanup;

Why not:

if (error) goto cleanup;
...
cleanup:
do_cleanup;

Oh, right. XKCD 292. I still think it's better to use the goto, though
- you just need velociraptor repellent.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to