Thank you Stig - I will try that (I found that (coerce (lambda ...)
'function) worked, but compile sounds better ... I'll try that ).
Appreciated...
Martin M
On 11/9/2013 11:51 AM, Stig Hemmer wrote:
> This is not a bug in SBCL. ACL goes beyond what the CL spec says it
> should do in this case, allowing you to write non-conforming code.
>
> This non-conforming code will not work everywhere.
>
> You are using FUNCALL on something that is not a function designator,
> that is "of type (OR FUNCTION SYMBOL)". Instead you try to
> use it on a list containing a LAMBDA expression, which is NOT a
> function designator.
>
> To get a function from a LAMBDA list, use COMPILE.
>
>

This is not a bug in SBCL. ACL goes beyond what the CL spec says it should
do in this case, allowing you to write non-conforming code.
This non-conforming code will not work everywhere.
You are using FUNCALL on something that is not a function designator, that
is "of type (OR FUNCTION SYMBOL)". Instead you try to
use it on a list containing a LAMBDA expression, which is NOT a function
designator.
To get a function from a LAMBDA list, use COMPILE.

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details