When compiling this function:
(DEFUN MAKE-KEYWORD (SYM)
RETURN: A new keyword with SYM as name.
(INTERN (STRING SYM) (FIND-PACKAGE "KEYWORD")))
;;; Compiling (DEFUN MAKE-KEYWORD ...).
;;; in file utility.lisp, position 28160
;;; at (DEFUN MAKE-KEYWORD ...)
;;; In function MAKE-KEYWORD, checking types of arguments SYM.
What does this note mean?
I hope that in addition to checking the types of the arguments, it
also generates the code to do the required computations... ;-)
If so, what's so special about argument type checking that is note
__Pascal Bourguignon__ http://www.informatimago.com/
On Sun, Aug 29, 2010 at 8:55 PM, Pascal J. Bourguignon <
> ;;; In function MAKE-KEYWORD, checking types of arguments SYM.
> What does this note mean?
That means a possibly expensive type check for SYM was inserted at the
beginning of the function. In this case it is possibly ensuring that SYM has
the right type for STRING
> I hope that in addition to checking the types of the arguments, it
> also generates the code to do the required computations... ;-)
Sure :-) I thought the warning is important because of the expensiveness of
the checks, which may slow down critical functions.
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)