1. 29 Nov, 2019 1 commit
    • Steve Losh's avatar
      Fix control flow when the loop contains NIL blocks · 4864426a
      Steve Losh authored
      Control flow clauses that return from an iterate form without executing
      the epilogue code (e.g. `never` and `leave`) currently do so by
      expanding into `(return-from ,*block-name*)`.  For iterate forms without
      a user-provided name, the block will be named `nil`.  This causes
      problems when used with other Common Lisp looping constructs such as
      `dolist`:
      
          (iterate
            (for i :from 0 :below 10)
            (dolist (x '(5 10 15))
              (never (= i x))))
          ; => T, but should be NIL
      
      This patch adds a separate `*loop-name*` variable that will be bound to
      a gensym for `NIL`-named blocks and makes the various epilogue-skipping
      code refer to that instead of `*block-name*`.  Iterate forms *without*
      an explicit user-provided name will still have a separate `(block nil
      ...)` wrapping so users can still `(return ...)` as before.
      
      Before (simplified):
      
          (iterate (leave))
          ; ==> (block nil (return-from nil))
      
          (iterate foo (leave))
          ; ==> (block foo (return-from nil))
      
      After:
      
          (iterate (leave))
          ; ==> (block nil (block #:ITERATE123 (return-from #:ITERATE123)))
      
          (iterate foo (leave))
          ; ==> (block foo (return-from foo))
      4864426a
  2. 07 Feb, 2018 1 commit
  3. 23 Jan, 2018 1 commit
  4. 16 Jan, 2018 4 commits
  5. 03 Aug, 2017 2 commits
    • Attila Lendvai's avatar
      tests: add *tests-expected-to-fail* to document which tests are expected to fail · c6659c94
      Attila Lendvai authored
      Ignore-this: 7d072a9ffe694700e1dc52ef3c653f94
      
      darcs-hash:79473b46ee0df4304125a8727b0691cfb05bbdd7
      c6659c94
    • Attila Lendvai's avatar
      Added 3 failing tests: always.finally, never.finally, and thereis.finally · ba12cb99
      Attila Lendvai authored
      Ignore-this: f3e9d3983567eb04ce2429b310bee837
      
      I'm not sure about what is their contract, but it was surprising to me
      that the FINALLY block is not executed.
      
      Arguably if you're expected to avoid sideffects in a FINALLY block,
      then you cannot/shouldn't change the return value, so the entire
      FINALLY block can be skipped then.
      
      Either way, this behavior should be documented with the tests, so
      if the current behavior is expected, then change the tests
      accordingly (as opposed to deleting them).
      
      darcs-hash:c0b172b51bc40943946c86d8ab76297807d26594
      ba12cb99
  6. 12 Jul, 2016 2 commits
  7. 11 Jul, 2016 1 commit
    • Attila Lendvai's avatar
      modernize .asd · 44e82af5
      Attila Lendvai authored
      Ignore-this: aac8fb3377c1ca4555e4e6483048e00c
      
      darcs-hash:e19497cb42b1837e878853300bd6b1972ff159c5
      44e82af5
  8. 23 Apr, 2014 1 commit
  9. 29 Jan, 2014 3 commits
  10. 08 May, 2012 1 commit
  11. 18 Dec, 2012 1 commit
  12. 09 May, 2012 1 commit
  13. 27 Sep, 2011 1 commit
  14. 19 Jan, 2011 1 commit
  15. 03 Jun, 2010 1 commit
    • Attila Lendvai's avatar
      added bug/walk.2 · 8bedb3c3
      Attila Lendvai authored
      Ignore-this: faa1bd48d0450e76652552bb47bcff02
      
      darcs-hash:3014735c0464ffdf47d05a0f8dd5ad6fc1f0db9b
      8bedb3c3
  16. 25 May, 2007 4 commits
  17. 06 May, 2007 2 commits
  18. 13 Jul, 2006 1 commit
  19. 03 May, 2007 2 commits
    • hoehle's avatar
      make FOR...IN/ON with dotted lists work like LOOP · 7b366825
      hoehle authored
      More precisely, FOR ON accepts dotted lists, FOR IN errors out.
      As a result, iterate::*list-end-test* was eliminated.
      Behaviour is now constant and does not depend on some special variable.
      Note: Documentation not yet updated, pending move to Texinfo.
      
      darcs-hash:5d57aef5caed4ed28274d852bd8626f19c3d0c94
      7b366825
    • Joerg-Cyril Hoehle's avatar
      walk-tagbody: more testcases · 899026ca
      Joerg-Cyril Hoehle authored
      darcs-hash:0a41a0f97d7b6d96454f41c0f79e560bc5c74cd0
      899026ca
  20. 04 Apr, 2007 1 commit
  21. 03 May, 2007 1 commit
  22. 26 Apr, 2007 1 commit
  23. 15 Feb, 2007 1 commit
  24. 25 Oct, 2006 2 commits
  25. 06 May, 2006 1 commit
  26. 05 May, 2006 1 commit
  27. 31 Mar, 2006 1 commit