in reply to Re: block-based programming...
in thread block-based programming...
# keep trying to close socket until we succeed while (close(soc) < 0) { if (errno != EINTR) { # wasn't interrupted, this is some other failure, bail! perror("close"); exit 1; } }
Your example is certaintly not less maintainble (yet), but this "block based" stuff above is an abomination when higher-level languages have more advanced constructs. That block based idea is fine for assembler or BASIC. Still, use of gotos encourages further use of gotos, and your particular use of goto and if's is logically a loop ... so just use the loop!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: block-based programming...
by tilly (Archbishop) on Apr 22, 2004 at 21:02 UTC | |
|
Re: block-based programming...
by Abigail-II (Bishop) on Apr 22, 2004 at 16:27 UTC | |
by flyingmoose (Priest) on Apr 22, 2004 at 16:42 UTC | |
|
Re: Re: Re: block-based programming...
by elusion (Curate) on Apr 22, 2004 at 19:24 UTC | |
by flyingmoose (Priest) on Apr 22, 2004 at 19:46 UTC |