all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* special form and macro
@ 2010-02-20 13:16 alin.s
  0 siblings, 0 replies; only message in thread
From: alin.s @ 2010-02-20 13:16 UTC (permalink / raw
  To: Emacs-devel


What difference exists between a macro and a user-defined special form?

In emacs the user cannot define special forms, maybe because the macros keep
the place of special forms?

A special form should be defined as

(special (var1 ... varn) (lambda () ... ))

During application, var1 ... varn should be initialized temporary inside the
environment with the unevaluated values of the call. (name val1 ... valn).

But this is exactly the definition of a macro. Is there a difference . Is
there a computation that one can do and the other not?





-- 
View this message in context: http://old.nabble.com/special-form-and-macro-tp27666297p27666297.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-20 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 13:16 special form and macro alin.s

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.