unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* defun vs lambda
@ 2009-07-24 20:30 weber
  2009-07-24 21:23 ` Anselm Helbig
  2009-07-24 21:46 ` Pascal J. Bourguignon
  0 siblings, 2 replies; 5+ messages in thread
From: weber @ 2009-07-24 20:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I know I can return a function from another function, like this:

(setq f (lambda () 2))

but I have to call it like (funcall f). Is there anyway that I could
do:

(setf f (defun () 2) and then be able to call (f) ?

Thanks
weber


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-31 12:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 20:30 defun vs lambda weber
2009-07-24 21:23 ` Anselm Helbig
2009-07-24 21:46 ` Pascal J. Bourguignon
2009-07-31 11:41   ` weber
2009-07-31 12:56     ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).