home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5050 < prev    next >
Encoding:
Text File  |  1992-12-18  |  1.7 KB  |  51 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!claird
  3. From: claird@NeoSoft.com (Cameron Laird)
  4. Subject: Re: ii/i/loops
  5. Organization: NeoSoft Communications Services -- (713) 684-5900
  6. Date: Thu, 17 Dec 1992 14:26:16 GMT
  7. Message-ID: <BzEqru.671@NeoSoft.com>
  8. Keywords: C loops
  9. References: <1992Dec16.142023.24363@seq.uncwil.edu>
  10. Lines: 39
  11.  
  12. In article <1992Dec16.142023.24363@seq.uncwil.edu> herbst@seq.uncwil.edu (R.T. Herbst) writes:
  13. >Using vi or  your favorite editor, say, ed to find loop control
  14. >variables, like i 0r ii or j 0r jj  is weird.
  15. >Why not 
  16. >in 
  17. >vi
  18. >do
  19. >/for
  20. >or /while
  21. >or /do
  22. >
  23. >all of the above are keywords and therefore 
  24. >are not 
  25. >allowed as variables.
  26. >herbst@seq.uncwil.edu
  27.  
  28. Wow!  This shows how far our understandings of the same
  29. words can diverge.  What Mr. Herbst says above isn't the
  30. point I got from this at all.
  31. 1.  "/for" doesn't work, 'cause it'll also match
  32.     "fortran", "foreign", "reformat", ...
  33. 2.  More crucially, when I go off looking for "i",
  34.     it's usually because something has gone wrong
  35.     with my loop, and I suspect that some third
  36.     party is off in a corner abusing one of my
  37.     variables ("Look!  'i = TRUE;', where they
  38.     probably meant 'in = TRUE;'.").  All the folks
  39.     I know who ask their editors to search for "i"
  40.     are doing so because they want to find the things
  41.     about which they do *not* already know, that is,
  42.     *not* the well-controlled loops and such.
  43.  
  44. This is surely a dead horse I'm beating, but it's interesting
  45. to me to realize how far apart we can get in so short a span.
  46. -- 
  47.  
  48. Cameron Laird
  49. claird@Neosoft.com (claird%Neosoft.com@uunet.uu.net)    +1 713 267 7966
  50. claird@litwin.com (claird%litwin.com@uunet.uu.net)      +1 713 996 8546
  51.