[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macro vs Function
From: |
Herbert Euler |
Subject: |
Re: Macro vs Function |
Date: |
Thu, 13 Apr 2006 00:14:39 +0800 |
Now I think I've understood how macro works. A macro is
equivalent to a "function" described as follows:
1. This function has the same body as the macro, and when
calling this function, substitute all arguments with quoted
ones.
2. Then the body of the function is evaluated, and a s-exp
is returned. (`, \, and ,@ are treated as normal functions
here.) All parameters are normal variables that have value
of the orignal arguments.
3. Next, evaluated this s-exp.
This will cause the same effect as the macro.
Thank you, David Kastrup, Andreas Schwab, and Stuart D.
Herring. This is I think the biggest step I made after studying
(Emacs) Lisp.
Regards,
Guanpeng Xu
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
- Re: Macro vs Function, (continued)
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, David Kastrup, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, David Kastrup, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, Stuart D. Herring, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, David Kastrup, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function,
Herbert Euler <=
- Re: Macro vs Function, David Kastrup, 2006/04/12
- Re: Macro vs Function, Herbert Euler, 2006/04/12
- Re: Macro vs Function, David Kastrup, 2006/04/12
- Re: Macro vs Function, David Kastrup, 2006/04/12
Re: Macro vs Function, Herbert Euler, 2006/04/12