Changeset 10988

Show
Ignore:
Timestamp:
11/18/05 19:36:17 (3 years ago)
Author:
rtoy
Message:

Modify DOTIMES macro so that it always iterates the specified number
of times, regardless of what the body might do to the index variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/code/macros.lisp

    r10864 r10957  
    545545  (unless (and (listp varlist) (every #'symbolp varlist)) 
    546546    (simple-program-error "Varlist is not a list of symbols: ~S." varlist)) 
    547   `(values (setf (values ,@varlist) ,value-form))) 
     547  (if varlist 
     548      `(values (setf (values ,@varlist) ,value-form)) 
     549      `(values ,value-form))) 
    548550 
    549551;;;