[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is this a bug of Emacs-Lisp?
From: |
Alan Mackenzie |
Subject: |
Re: Is this a bug of Emacs-Lisp? |
Date: |
Fri, 17 Feb 2006 19:24:32 +0000 (GMT) |
Hi!
On Fri, 17 Feb 2006, Zhang Wei wrote:
>(defun dummy () '(1 . 2))
>(dummy)
> => (1 . 2)
>(setcdr (dummy) 3)
>(dummy)
> => (1 . 3)
>Modify the return value of dummy changed it's defination. Is this
>a bug of Elisp? If it's not. How does this happen?
No, it's not a bug at all. You haven't changed the definition of dummy
with the setcdr - you've merely altered a cons cell which happened to
have been produced some time earlier by dummy.
Please also note that address@hidden isn't really the place for this
sort of question - it's a mailing list for discussing the development of
Emacs. You'd do better by posting to the list <address@hidden>,
or the equivalent newsgroups, gnu.emacs.help.
>--
>Zhang Wei or Brep
><address@hidden>
--
Alan Mackenzie (Munich, Germany)
- Is this a bug of Emacs-Lisp?, Zhang Wei, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, David Kastrup, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Kevin Rodgers, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Giorgos Keramidas, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Andreas Schwab, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Luc Teirlinck, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Luc Teirlinck, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?,
Alan Mackenzie <=
- Re: Is this a bug of Emacs-Lisp?, Sascha Wilde, 2006/02/17
- Re: Is this a bug of Emacs-Lisp?, Richard M. Stallman, 2006/02/18