help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Function pointer


From: Drew Adams
Subject: RE: Function pointer
Date: Tue, 14 Apr 2009 07:37:50 -0700

> > >     (function)
> > > this gives wrong number of arguments.
...
> > The very short answer to your question: Use funcall, as in
> >     (funcall function)
> 
> Works likes a charm. Now I have the tools to build the 'little'
> functionality I wanted. Thanks.

BTW, the reason the error message complained about the wrong number of args is
that `function' is an existing special form - `C-h f function':

,----
| function is a special form in `C source code'.
| 
| (function arg)
| 
| Like `quote', but preferred for objects which are functions.
| In byte compilation, `function' causes its argument to be compiled.
| `quote' cannot do that.
`----

"Function" (special form) `function' expects one argument, and you gave it zero
args.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]