home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:13198 comp.lang.c:13111
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!uka!i41s14!prechelt
- From: prechelt@i41s14.ira.uka.de (Lutz Prechelt)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: named loops
- Followup-To: comp.lang.c++
- Date: 2 Sep 1992 14:24:33 GMT
- Organization: University of Karlsruhe, FRG
- Lines: 30
- Distribution: world
- Message-ID: <182ir1INNt1d@iraul1.ira.uka.de>
- References: <aldavi01.714376080@starbase.spd.louisville.edu> <BEVAN.92Aug29180936@tiger.cs.man.ac.uk>
- NNTP-Posting-Host: i41s14.ira.uka.de
-
- Everybody interested in the issue of named loops should have a look
- at the C-Refine preprocessor, which -- among other things -- solves
- this problem: give a name to any block (e.g. a loop or loop body) and
- jump out of that block with the "leave" statement. You can leave
- arbitrarily many ones at once.
-
- C-Refine works for C and C++ and is available for anonymous ftp from
- iraun1.ira.uka.de [129.13.10.90]
- /pub/gnu/crefine.3.0.tar.Z
- as
- -rw-r--r-- 1 ftp XLINK 93217 Jul 15 10:06 crefine.3.0.tar.Z
-
- C-Refine 3.0 also appeared as v02i013 to v02i19
- on comp.sources.reviewed on 15 Jul 92
-
- [The other thing that C-Refine does is letting you put just the name of the
- block where the block belongs, instead of the block itself.
- The block is declared later below.
- This mechanism allows for top-down decomposition inside functions,
- which very much improves the readability of programs and eases writing
- them.]
-
- Lutz
-
- Followup to comp.lang.c++
- --
- Lutz Prechelt (email: prechelt@ira.uka.de) | Whenever you
- Institut fuer Programmstrukturen und Datenorganisation | complicate things,
- Universitaet Karlsruhe; D-7500 Karlsruhe 1; Germany | they get
- (Voice: ++49/721/608-4317, FAX: ++49/721/694092) | less simple.
-