How to call this function in Common Lisp?

common-lisp

Solution

This defines a `setf` function. You can call it using `(setf (xwin-border-width *some-window*) width)`.

You might find the documentation for `setf` useful: http://www.lispworks.com/documentation/lw50/CLHS/Body/m_setf_.htm

The Hyperspec also has a section on generalised references: http://www.lispworks.com/documentation/lw50/CLHS/Body/05_a.htm

Problem

``` (defun (setf xwin-border-width) (width win) (setf (xlib:drawable-border-width win) width)) ``` then how to call the above function ? In fact i donot really understand what "(setf xwin-border-width)" means in place of function time ? Sincerely !

Original source