Article View: comp.std.c
Article #3978Re: How to eliminate GOTO?
From: Magao
Date: Wed, 13 Sep 1995 01:04
Date: Wed, 13 Sep 1995 01:04
33 lines
1791 bytes
1791 bytes
In <42pjb9$2vt@caip.rutgers.edu> halasz@caip.rutgers.edu writes:
>In <42f8n4$eq1@caip.rutgers.edu> halasz@caip.rutgers.edu writes
>+Another form was suggested:
>+ while search: (1) { ... }
>+. This is good, except for "do ... while (...);".
>In article <42o9e3$bj1@wraith.cc.uow.edu.au>, magao@rabble.uow.edu.au (Magao) writes
>+ No problem ...
>+
>+ do search:
>+ {
>+ }
>+ while (...);
>And what if the brackets (braces) are not there? That is the problem.
Good point ... I can only excuse myself by stating that I'm sick (and
hence my concentration is a bit off at the moment), combined with the fact
that I *always* put the braces in ... that way, if I ever need to add
something to a loop or other construct I won't accidentaly forget to add
the braces.
Hmm ... something to think about when my head clears up a bit ;) I *would*
like to be able to label a loop in some way and break out of it.
_/_/_/_/
__| __| _/_| _/_/_/ _/_| _/_/_/
_/_| _/_| _/ _| _/ _/ _| _/ _/
-/ _|_/ _| _/_/_/_| _/ _/_/_/ _/_/_/_| _/ _/
_/ __/ _| _/ _| _/_/_/ _/ _| _/_/_/
Tim Delaney (TCD Software) magao@rabble.uow.edu.au
Technical Details
Message-ID:
<435ano$h6p@wraith.cc.uow.edu.au>Path:
arc1-ca.pugleaf.net!wabbit.cc.uow.edu.au!not-for-mailReferences:
<41cke4$gtd@sparcserver.lrz-muenchen.de> <41ni1c$ft6@news1.wolfe.net> <42o9e3$bj1@wraith.cc.uow.edu.au> <42pjb9$2vt@caip.rutgers.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wabbit.cc.uow.edu.au!not-for-mail From: magao@rabble.uow.edu.au (Magao) Newsgroups: comp.std.c Subject: Re: How to eliminate GOTO? Date: 13 Sep 1995 11:04:56 +1000 Organization: University of Wollongong, NSW, Australia. Sender: ctd13@wraith.cc.uow.edu.au Message-ID: <435ano$h6p@wraith.cc.uow.edu.au> References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <41ni1c$ft6@news1.wolfe.net> <42o9e3$bj1@wraith.cc.uow.edu.au> <42pjb9$2vt@caip.rutgers.edu> NNTP-Posting-Host: wraith.cs.uow.edu.au