[Ecls-list] "In function TEST, checking types of arguments FN."

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Feb 7 11:48:20 UTC 2010


On Sun, Feb 7, 2010 at 12:25 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:

>
> (defun test (fn)
>  (declare (type function fn))
>  fn)
>
> ;;; Compiling /tmp/frob.lisp.
> ;;; OPTIMIZE levels: Safety=3, Space=0, Speed=1, Debug=3
> ;;; Compiling (DEFUN TEST ...).
> ;;; Note: in file /tmp/frob.lisp, position 0, and form
> ;;;   (FSET 'TEST #'(LAMBDA-BLOCK TEST # ...))
> ;;; In function TEST, checking types of arguments FN.
>
> What's the point of that note?
>

This means ECL is going to produce a very expensive type check for each of
the arguments of TEST.


> Another thing:
>
> I find the "Invoking external command" notes just noise.


Use .ecl or .eclrc and add COMPILER-NOTE to the type
C:*suppress-compiler-messages* (this is a lisp type specifier, not a list)
which represents the type of notes and messages that are suppressed, or set
C::*SUPPRESS-COMPILER-NOTES* to T and get rid of everything which is not a
warning or an error.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100207/46674aab/attachment.html>


More information about the ecl-devel mailing list