[slime-devel] Situation where I need (with-compilation-unit () ...) wrapped around both the load and the compile

Martin Simmons martin at lispworks.com
Fri Jan 11 12:09:35 UTC 2013


>>>>> On Fri, 11 Jan 2013 09:33:10 +0100, Helmut Eller said:
> 
> On Fri, Jan 11 2013, Dave Cooper wrote:
> 
> > Hi All,
> >
> > So I think I have a situation with compiling and loading a file where
> > it needs
> >
> >   (with-compilation-unit () (load (compile-file ... )))
> >
> > in order not to have spurious warnings about undefined functions.
> 
> The warning would still be there, regardless of the
> WITH-COMPILATION-UNIT, right?

Not if the function is defined as a result of loading the file (in some way
that the compiler didn't notice).  WITH-COMPILATION-UNIT will not warn about
it because the function is defined at the end.

__Martin




More information about the slime-devel mailing list