home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13198 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.8 KB

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