help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: eval trouble


From: Lennart Borgman (gmail)
Subject: Re: eval trouble
Date: Mon, 25 Aug 2008 20:34:02 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Pascal J. Bourguignon wrote:
> Lennart Borgman (gmail) writes:
>> Pascal J. Bourguignon wrote:
>>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>>>> Here is the code that does NOT work:
>>>>>
>>>>> (defun mumamo-define-no-mode (mode-sym)
>>>>>   (let ((mumamo-repl4 (make-symbol (format "mumamo-repl4-%s" mode-sym)))
>>>> It works if I replace make-symbol with intern. But why does eval care
>>>> about that?
>>> eval doesn't care, but how would you be able to refer again to the
>>> defined thing if you don't have its name in some dictionary?
>>
>> Thanks. I see. I thought eval interned the symbol, or perhaps rather
>> created an interned symbol. In this case it does not do that.
>>
>> Or am I still misunderstanding something.
> 
> Only intern interns symbols.  intern is called automatically only by
> the lisp reader.  It's when a s-expression is read that symbols it
> contains are interned.  When you call eval, it's already done.

Yepp. I was still misunderstanding. Thanks, that was very clear.




reply via email to

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