Changeset 11018


Ignore:
Timestamp:
03/16/06 19:49:12 (15 years ago)
Author:
piso
Message:

SETF: count => numargs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/setf.lisp

    r10718 r11018  
    11;;; setf.lisp
    22;;;
    3 ;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: setf.lisp,v 1.63 2005-12-22 18:47:39 piso Exp $
     3;;; Copyright (C) 2003-2006 Peter Graves
     4;;; $Id: setf.lisp,v 1.64 2006-03-16 19:49:12 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    6363
    6464(defmacro setf (&rest args &environment environment)
    65   (let ((count (length args)))
     65  (let ((numargs (length args)))
    6666    (cond
    67      ((= count 2)
     67     ((= numargs 2)
    6868      (let ((place (first args))
    6969            (value-form (second args)))
     
    8787                                    ,(list (car store-vars) value-form))
    8888                               ,setter)))))))))
    89      ((oddp count)
     89     ((oddp numargs)
    9090      (error "Odd number of arguments to SETF."))
    9191     (t
Note: See TracChangeset for help on using the changeset viewer.