[Openmcl-devel] function-lambda-list

Stas Boukarev stassats at gmail.com
Mon Jul 9 18:19:11 PDT 2012


Burton Samograd <burton.samograd at gmail.com> writes:

> On 12-07-09 07:09 PM, Stas Boukarev wrote:
>> Burton Samograd <burton.samograd at gmail.com> writes:
>>
>>> On 12-07-09 07:02 PM, Stas Boukarev wrote:
>>>> (ccl:decode-string-from-octets (ccl::source-note-source (ccl:function-source-note #'add)))
>>>
>>> Oddly, it works when I run CCL from the command line, but not when I
>>> run from within SLIME:
>>>
>>> CL-USER> (defun add (x) (1+ x))
>>> ADD
>>> CL-USER> (ccl:decode-string-from-octets (ccl::source-note-source
>>> (ccl:function-source-note #'add)))
>>> ; Evaluation aborted on #<TYPE-ERROR #x30200278979D>.
>>> CL-USER> (ccl:decode-string-from-octets (ccl::source-note-source
>>> (ccl:function-source-note #'add)))
>>> ; Evaluation aborted on #<TYPE-ERROR #x30200284D12D>.
>>> CL-USER> (ccl:function-source-note #'add)
>>> NIL
>>> CL-USER> (ccl:function-source-note 'add)
>> Well, you should just compile the function in slime with C-c C-c.
>>
>
> Sorry for my ignorance, but why would I have to do that?  From my tests it looks
> like CCL always compiles defun's by default.  Am I wrong with this assumption?
You put the definition into a file and press C-c C-c.

-- 
With best regards, Stas.



More information about the Openmcl-devel mailing list