all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.