emacs-devel
[Top][All Lists]
Advanced

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

Re: problems with flet on last emacs


From: Tassilo Horn
Subject: Re: problems with flet on last emacs
Date: Wed, 27 Jun 2012 17:55:45 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux)

"Pascal J. Bourguignon" <address@hidden> writes:

>> Two times `x', and those should probably gensyms, anyway...
>
> They probably are.
>
> Try:
>
> (eq 'x (first (first (second (macroexpand '(flet ((foo () 1))
>                                               (foo)))))))
> and try:
>
> (let ((expansion  (macroexpand '(flet ((foo () 1)) (foo)))))
>   (eq (first (first  (second expansion)))
>       (first (second (second expansion)))))

Ok, both are nil, so x and x are different symbols.  cl uses macroexp's
macro expansion macros at various places, and `macroexp-let2' uses
(make-symbol "x") to create new symbols.  That's not making it easier to
understand...

Bye,
Tassilo



reply via email to

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