[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Defun inside Let

    Date: Sun, 2 Feb 86 18:34:00 GMT
    From: Jeff Dalton <jeff%aiva.edinburgh.ac.uk@cs.ucl.ac.uk>

    I have another question regarding functions, but this is only of the "Does
    CLtL actually say everything it should?" variety.  If I do

       (flet ((b () 1)) (apply #'b ()))

    I get 1, as expected, but if I use 'B or (SYMBOL-FUNCTION 'B) instead of #'b I
    get an error telling me that B is undefined.  It is clear that I should get
    this error [see pp 90 (SYMBOL-FUNCTION) and 107 (APPLY applied to a symbol)].
    The description of FUNCTION (p 87) also indicates that it should work in this
    case ("fn is interpreted as if it had appeared...").  But then,

       In particular, if fn is a symbol, the functional definition associated
       with that symbol is returned; see SYMBOL-FUNCTION.

I believe this to be an editing error.  This text is left over from an earlier
draft version of the manual, from before the day when full lexical scoping was adopted.