Article View: comp.lang.fortran
Article #161Re: โThe end of software secrecy is almost upon
From: Keith Thompson
Date: Fri, 23 Oct 2026 04:21
Date: Fri, 23 Oct 2026 04:21
24 lines
2815 bytes
2815 bytes
"Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> writes:
[...]
> 'break' is just another name for 'goto label'. Fortran offers
> 'cycle' and 'exit' to either return to the top of a loop (
> similar to C's 'continue') or to jump out of loop. Fortran
> has named constructs, so one can use 'cycle' and 'exit' on
> (deeply?) nested constructs.
Any given C break statement is equivalent to a goto statement that
jumps just after the enclosing loop or switch statement.
But "break" is useful because it can't branch to any arbitrary point
in the enclosing function. It can only break out of a specific
enclosing construct. That makes the code easier to read and write.
BTW, the next C standard is planned to add named loops and breaks,
which are also proposed for C++. Some C compilers already implement
them as an extension.
[...]
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11benbt$1f649$1@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6vc4$2npqv$1@dont-email.me> <11b87jg$37b7t$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b94he$3hdo3$2@dont-email.me> <11b9qd6$pq4i$1@dont-email.me> <11b9r5r$3nppf$1@dont-email.me> <11baekk$3v7n1$1@dont-email.me> <11bbl4f$du80$2@dont-email.me> <11bbo58$ek3q$1@dont-email.me> <11bbqns$fe31$1@dont-email.me> <11bbron$fmi2$1@dont-email.me> <11bc09b$gsv1$1@dont-email.me> <11bc3m0$hnan$1@dont-email.me> <11bc4m2$i1rd$1@dont-email.me> <11bd9fd$v6su$1@dont-email.me> <11bekio$1eab6$4@dont-email.me> <11bemnv$1enf2$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.fortran,comp.lang.c++ Subject: Re: โThe end of software secrecy is almost upon Date: Thu, 22 Oct 2026 21:21:15 -0700 Organization: None to speak of Lines: 24 Message-ID: <11benbt$1f649$1@kst.eternal-september.org> References: <11amvre$15far$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6vc4$2npqv$1@dont-email.me> <11b87jg$37b7t$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b94he$3hdo3$2@dont-email.me> <11b9qd6$pq4i$1@dont-email.me> <11b9r5r$3nppf$1@dont-email.me> <11baekk$3v7n1$1@dont-email.me> <11bbl4f$du80$2@dont-email.me> <11bbo58$ek3q$1@dont-email.me> <11bbqns$fe31$1@dont-email.me> <11bbron$fmi2$1@dont-email.me> <11bc09b$gsv1$1@dont-email.me> <11bc3m0$hnan$1@dont-email.me> <11bc4m2$i1rd$1@dont-email.me> <11bd9fd$v6su$1@dont-email.me> <11bekio$1eab6$4@dont-email.me> <11bemnv$1enf2$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 23 Oct 2026 04:21:18 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="1546377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k15BKjMQ2CD9sC9hOPyA+"; posting-host="f440da176685714721ec135546110242" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:o9cDTPeCJZ0SS/SVAi6xvD2cGkI= sha256:0Vj6QjKBNK/PT29yPykPjT4ttmJo0NwZPFRwMGJu/II= sha1:uVUcKQr6x/Hs9+50cubMJHeYack= sha256:akdgkcTUV02fdkaXTXtadJwCkAfOs2b8Fh3qW9/er10=