I've never seen the term "function specifier" before, could someone please explain what this means in context with the text. Also, I've been searching the Hyperspec, and I haven't found any reference to "This list is not a form to be evaluated" in regards to the writer generic function which is generated by the :accessor slot option. Could someone assist on where I might find more information? Thanks.OOPCL wrote:
The name of the writer generic function is the list (setf lock-owner). This list is not a form to be evaluated; it is the name of the function—in
other words, it is the "function specifier."
Question on OOPCL
Question on OOPCL
I'm reading OOPCL, and could use some help with a term.
Re: Question on OOPCL
I think I've found the answer to my first question here:
So "function specifier" is probably an archaic for "function name" sinceCLTL wrote: [X3J13 voted in March 1989 (FUNCTION-NAME) to use fdefinition in the previous paragraph, as shown, rather than symbol-function, as it appeared in the original report on CLOS [5,7]. The vote also changed all occurrences of function-specifier in the original report to function-name; this change is reflected here.-GLS]
which is as it should be. I still need help with the second question though. ThanksCLTL wrote: The function-name argument is a non-nil symbol or a list of the form (setf symbol).
Re: Question on OOPCL
Code: Select all
(setf foo)
The similar thing works in scheme:
Code: Select all
(define (pow2 x) (* x x))
Code: Select all
(define pow2 (lambda (x) (* x x)))
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version). Temporary mirrors of aferomentioned: CLHS and a dark version.
Re: Question on OOPCL
So that's it! That was bugging the hell out of me. I just want to be sure of the concepts involved. BTW setf was my first "aha" moment in Lisp when I realized what all a place could be! Thanks so much. I plan on finishing the book in about a few weeks, so I'll probably have more questions. Pax.Goheeca wrote: Look at that this way: the list doesn't make sense for evaluation. It's only notation which roughly means that the foo is defsetfed. By the way, I like the setf (an abbreviation of set function) facility -- the declarative attitude very much.
Re: Question on OOPCL
Yeah, a great example is here on this forum.
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version). Temporary mirrors of aferomentioned: CLHS and a dark version.
Re: Question on OOPCL
One other question, does anyone know the status of Sonya Keene? She doesn't have a Wikipedia page, although she apparently worked for Symbolics, which is just plain awesome in itself. Just my morbid curiosity kicking in... thanks.