Re: rotatef mystery



Ken Tilton wrote:
Saw this in the doc for rotatef, don't get it:

"If a place produces more values than there are store variables, the extra values are ignored. If a place produces fewer values than there are store variables, the missing values are set to nil. "

OK: (rotatef x y z)

How does a place, say, y produce more values than there are store variables?!

(rotatef (value x x1) (values) y)


Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/
.



Relevant Pages

  • Re: rotatef mystery
    ... Ken Tilton writes: ... "If a place produces more values than there are store variables, ... (defun (setf fun) ... (I don't know how y will behave in rotatef, no time now to find out). ...
    (comp.lang.lisp)
  • Re: rotatef mystery
    ... Pascal Costanza wrote: ... If a place produces fewer values than there are store variables, the missing values are set to nil. ... Closer to MOP & ContextL: http://common-lisp.net/project/closer/ ...
    (comp.lang.lisp)