Skip to content
Snippets Groups Projects
  1. Jan 10, 2021
    • Raymond Toy's avatar
      Fix #91: Handle loop destructuring · 1144015f
      Raymond Toy authored
      The destructuring shortcut in loop doesn't require all the parts be
      available.  If they're not, each item is replaced by NIL.
      
      This is fixed by still using `destructuring-bind`, except we mark
      everything as optional.
      1144015f
  2. Nov 07, 2014
  3. Nov 06, 2014
    • Raymond Toy's avatar
      Add iterators and loop paths for codepoints and glyphs · 2b1925b6
      Raymond Toy authored
       * src/code/string.lisp:
         * Add WITH-STRING-CODEPOINT-ITERATOR to allow iterating over the
           codepoints in a string.
         * Add WITH-STRING-GLYPO-ITERATOR to allow iterating over the
           glpyhs in a string.
       * src/code/exports.lisp:
         * Export WITH-STRING-CODEPOINT-ITERATOR and
           WITH-STRING-GLYPH-ITERATOR. 
       * src/code/loop.lisp:
         * Support (loop for cp being the codepoint of string ...) which
           extracts the consecutive codepoints from the string. Allow
           codepoints, code-point, and code-points as aliases of codepoint.
         * Support (loop for g-string being the glyph of string ...) which
           extracts each glyph (as a string) from the string.  Allow glpyhs
           as an alias.
       * tests/extended-loop.lisp:
         * New file of tests for the new loop paths.
       * src/i18n/locale/cmucl.pot:
         * Update.
      2b1925b6
  4. Nov 04, 2011
  5. Sep 25, 2011
  6. Apr 20, 2010
  7. Apr 19, 2010
  8. Mar 19, 2010
  9. Aug 09, 2009
  10. Jul 15, 2008
  11. Jul 14, 2008
    • rtoy's avatar
      Fix for Trac #17: LOOP NAMED NIL has no effect · f452db1b
      rtoy authored
      code/loop.lisp:
      o In LOOP-TRANSLATE, create block for loop named NIL by checking for
        the end of the list, not for NIL in the list.
      o In LOOP-DO-NAMED, don't append NIL to *LOOP-NAMES* so we can create
        blocks named NIL.  (Why was this being done before?)
      
      general-info/release-19f.txt:
      o Update
      f452db1b
  12. Oct 21, 2004
    • rtoy's avatar
      Fix loop initialization bug reported by Bruno Haible, cmucl-imp, · 354967b1
      rtoy authored
      2004-08-20.  Use boot-2004-10-2.lisp to bootstrap.
      
      o We were not putting the loop prologue code after the initializations
        for with, for, and as.
      o The step form for for-as-equals was getting optimized into the body,
        instead of leaving one in the prologue for other initializations.
      o The for-across clause was putting the length computation into the
        prologue, but should belong in the initialization part before the
        body.
      
      See comments for more info.
      354967b1
  13. Oct 19, 2004
  14. Oct 05, 2004
  15. Jan 18, 2004
  16. Aug 28, 2003
    • gerd's avatar
      (loop for i in '(4 8 9 a 13) · dba261e1
      gerd authored
      	      when (eq i 'a) return :good
      	      while (< i 12) collect i)
      
      	signaling a type-error because the while is done before the when.
      	Found by Paul Dietz.
      
      	* src/code/loop.lisp (loop-do-if): Move the call to loop-pseudo-body
      	outside of the binding of *loop-inside-conditional*.
      dba261e1
  17. May 28, 2003
  18. May 05, 2003
    • emarsden's avatar
      · caee4276
      emarsden authored
        Fix misleading commentary on the implications of the LOOP license (from
        Adam Warner).
      caee4276
  19. Feb 21, 2003
  20. Feb 20, 2003
  21. Dec 04, 2002
    • toy's avatar
      Port of SBCL's changes: · cd91124b
      toy authored
      0.7.10.2:
      	Fix remaining LOOP bugs from GCL ansi-tests
      	... duplicate variable names (at any level) signal an error at
      		macroexpansion time;
      	... IT is only a special loop symbol in the first clause of a
      		conditional execution clause.
      cd91124b
  22. Nov 26, 2002
  23. Nov 25, 2002
  24. Nov 22, 2002
    • toy's avatar
      From Gerd Moellmann, "canniablizing CVS SBCL": · 8dce0591
      toy authored
       * Use *PACKAGE* if no IN or OF preposition follows BEING THE SYMBOLS
         etc.
      
       * Treat DOWNTO like UPTO in (loop for i downto 10 ...).
      
       * Handle the strange REPEAT cases in the ANSI test.
      8dce0591
    • toy's avatar
      From Gerd Moellmann: · 897548b5
      toy authored
      o Add ABOVE keyword for loops
      o Handle nil in destructuring bindings.
      o Put proper blocks for named loops (and unnamed loops)
      o Signal program-error for loop expansion errors
      o Handle bogus INTO vars
      897548b5
  25. Nov 14, 2002
    • toy's avatar
      Fix two loop bugs: · 7781102a
      toy authored
      o (loop for nil being the hash-keys of (make-hash-table) count t)
      o (loop for k being the hash-keys of (make-hash-table) using
        (hash-value (v1 . v2)) count t)
      
      From Gerd Moellmann.
      7781102a
  26. Jul 30, 2002
    • toy's avatar
      From Alexey Dejneka via SBCL: · 6a72b483
      toy authored
      o Declare WITH-introduced variables
      o Compound form must follow INITIALLY, FINALLY, DO.
      6a72b483
  27. Jul 06, 2002
  28. Oct 04, 2001
    • toy's avatar
      Patch stolen from SBCL bug 81. · 89cf3b64
      toy authored
      Loop doesn't handle loops like
      
      (loop with (a b) = '(1 2)
            and (c d) = '(3 4)
            return (list a b c d))
      
      correctly because it fails to destructure the variables correctly.
      89cf3b64
  29. Mar 10, 2000
  30. Mar 19, 1999
  31. May 01, 1998
  32. Feb 03, 1998
  33. Oct 31, 1994
  34. Oct 29, 1994
  35. Oct 05, 1994
Loading