home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2225 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.5 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!gateway
  2. From: ptw@riverside.scrc.symbolics.com (P. T. Withington)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: "Next-iteration" clause in Loop macro?
  5. Message-ID: <19920814141322.6.PTW@SAPPHO.Myteline.Symbolics.COM>
  6. Date: 14 Aug 92 14:23:15 GMT
  7. References: <16foosINN7mc@early-bird.think.com>
  8. Sender: news@mintaka.lcs.mit.edu
  9. Organization: LCS news/mail gateway
  10. Lines: 28
  11. X-Unparseable-Date: Fri
  12.  
  13.  
  14.     Date: Fri, 14 Aug 1992 03:53 EDT
  15.     From: Barry Margolin <barmar@think.com>
  16.  
  17.     In article <16eujtINNhma@agate.berkeley.edu> konstan@cs.berkeley.edu (Joe Konstan) writes:
  18.     >Is there a clause or macro within loop to cause execution to continue 
  19.     >at the next iteration?  
  20.  
  21.     I don't think so.  There's a macro to terminate the entire loop,
  22.     LOOP-FINISH.
  23.  
  24. Gee, I could've sworn there was a LOOP-CONTINUE macro in some LOOP
  25. dialect; but I can't find it in any I have references on.  Perhaps I
  26. dreamt it.  I can't think of a case where I couldn't get by without it,
  27. but there are certainly times I wished I had it!
  28.  
  29.     >             If not, is adding a label at the start of the 
  30.     >loop-body and "go"ing there guaranteed to work--or might that not properly
  31.     >execute the loop stepping code (which would mean that I need to instead
  32.     >go to the bottom of the loop).  
  33.  
  34.     It's not going to work at all, since you can't put GO tags in loop bodies.
  35.     Symbols are treated as LOOP keywords, not tags.
  36.     -- 
  37.     Barry Margolin
  38.     System Manager, Thinking Machines Corp.
  39.  
  40.     barmar@think.com          {uunet,harvard}!think!barmar
  41.