logo       

Re: error or warning during compilation, yet some function is generat ed: msg#00137

lisp.clisp.general

Subject: Re: error or warning during compilation, yet some function is generat ed

> * In message <9F8582E37B2EE5498E76392AEDDCD3FE03ECF189@xxxxxxxxxxxxxxxxxxxxxx>
> * On the subject of "[clisp-list] error or warning during compilation, yet
> some function is generat ed"
> * Sent on Tue, 29 Apr 2003 16:05:31 +0200
> * Honorable "Hoehle, Joerg-Cyril" <Joerg-Cyril.Hoehle@xxxxxxxxxxxxx> writes:
>
> [21]> (lambda(s)(declare (compile))(ffi:with-foreign-string (f s :foo 1)
> (values f s)))
> ;NB: This form is erroneous.
>
> ERROR in :LAMBDA-2 :
> Constant :FOO cannot be bound.
> WARNING in LAMBDA :
> variable S is not used.
> Misspelled or missing IGNORE declaration?
> #<COMPILED-CLOSURE :LAMBDA>
>
> ; I.e. an error is reported, yet compilation continues, and returns a
> weird function object:

this appears to be the intended behavior in COMPILE-LAMBDA
(compiler.lisp)
I can easily disable it, but I would love to hear why Bruno introduced it.

--
Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Sinners can repent, but stupid is forever.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise