[Openmcl-devel] Compiler warnings
Greg Pfeil
greg at clozure.com
Sun Oct 18 09:49:14 PDT 2009
On 18 Oct 2009, at 12:35, Taoufik Dachraoui wrote:
> Remember, I found this issue when I tried to pop and push from a list:
>
> ? (setf lst '(1 2 3))
> ? (push 0 lst)
> ? lst
> (0 1 2 3)
> ? (pop lst)
> Warning
> ? lst
> (1 2 3)
>
> push did not raise a warning and pop did.
Right, and that brings us full-circle to Gary's explanation from _two
days ago_ (which has already been repeated). Here are the important
bits one more time:
>> some forms typed into the REPL in CCL are handled by a very simple
>> evaluator (which generally doesn't try to warn about this sort of
>> thing); other forms are "evaluated" by compiling them and
>> funcalling the resulting function, and the compiler generally does
>> warn in this case.
>> I guess that I'd agree that things should be consistent (and the
>> simple
>> evaluator should warn in the same cases that the compiler does).
I'm done with this conversation.
More information about the Openmcl-devel
mailing list