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

number of arguments

> A colleague asks:
> >Do you know if the maximum number of arguments to MCL functions is
> >defined somewhere? I was converting a list to a vector after finishing
> >the list manipulation. I was just trying to save memory space.

a positive integer that is the upper exclusive bound on the number of
arguments that may be passed to a function.

= 8192

(apply #'+ (make-list (1- call-arguments-limit) :initial-element 1))
works, but 

(apply #'+ (make-list call-arguments-limit :initial-element 1))

gave an error message and crashed my lisp afterwards