[Ecls-list] declaim question
Marko Kocić
marko.kocic at gmail.com
Tue Feb 1 14:02:35 UTC 2011
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.
When I execute those declarations before call to compile-file, then
the file is compiled with declared settings.
Am I doing something wrong?
CLHS for declaim specifies:
"If a use of this macro appears as a top level form in a file being
processed by the file compiler, the proclamations are also made at
compile-time. As with other defining macros, it is unspecified whether
or not the compile-time side-effects of a declaim persist after the
file has been compiled."
So I assumed that file containig this declaration at the begining will
be compiled with these optimizations as specified.
Regards,
Marko Kocić
More information about the ecl-devel
mailing list