I'm hoping someone can explain why I get the following confusing
message when calling a function with the wrong number of arguments:
CL-USER> (defun foo (a b) (+ a b))
FOO
CL-USER> (foo 3 4)
7
CL-USER> (foo 3)
> Error: value -2 is not of the expected type UNSIGNED-BYTE.
> While executing: NBUTLAST, in process new-repl-thread(790).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1> :pop
; Evaluation aborted
CL-USER> (foo 3 4 5)
> Error: value -2 is not of the expected type UNSIGNED-BYTE.
> While executing: NBUTLAST, in process new-repl-thread(791).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1> :pop
; Evaluation aborted
CL-USER>
This only happens when running with SLIME. It works correctly when
running openmcl directly, and lets me know that there are too many or
too few arguments, as well as the name of the function that had the
problem.
Is there some SLIME setup I have to configure, or is this normal? (I'm
using the SLIME that comes with Aquamacs).
Thanks,
Neil
Neil Baylis <···········@gmail.com> writes:
> I'm hoping someone can explain why I get the following confusing
> message when calling a function with the wrong number of arguments:
>
> CL-USER> (defun foo (a b) (+ a b))
> FOO
> CL-USER> (foo 3 4)
> 7
> CL-USER> (foo 3)
>> Error: value -2 is not of the expected type UNSIGNED-BYTE.
>> While executing: NBUTLAST, in process new-repl-thread(790).
>> Type :POP to abort, :R for a list of available restarts.
>> Type :? for other options.
> 1> :pop
> ; Evaluation aborted
>
> This only happens when running with SLIME. It works correctly when
> running openmcl directly, and lets me know that there are too many or
> too few arguments, as well as the name of the function that had the
> problem.
This seems like a bug in the OpenMCL swank backend. Please report that
to the slime-devel mailinglist.
-T.
Tobias wrote:
>
> This seems like a bug in the OpenMCL swank backend. Please report that
> to the slime-devel mailinglist.
>
> -T.
OK, will do. Thanks.
Neil