[Ecls-list] declaim question

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sat Feb 12 19:12:00 UTC 2011


On Tue, Feb 1, 2011 at 3:02 PM, Marko Kocić <marko.kocic at gmail.com> wrote:

> I have lisp file some.lisp which have the following at the beginning:
>
> (declaim (optimize (speed 3) (safety 0) (debug 0)))
>
> When I call (compile-file "some.lisp"), declarations in file are
> ignored while compiling file.


I just checked with a toy example (see below) and the code is indeed
generated differently when I change the declaim statement in the file. Do
those problems still persist in your copy of ECL?

Juanjo

(declaim (optimize (speed 3) (safety 0) (debug 0)))
(defun faa (x)
 (print (cos x)))


-- 
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/20110212/65e42be6/attachment.html>


More information about the ecl-devel mailing list