[Top][All Lists]

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

RE: Is this a bug of Emacs-Lisp?

From: Drew Adams
Subject: RE: Is this a bug of Emacs-Lisp?
Date: Fri, 17 Feb 2006 21:26:15 -0800

    If you really want to create a new cons cell every time (dummy) runs,
    you'll have to explicitly do that in the function:

        (defun dummy () (copy-tree '(1 . 2)))

Sure, but that's really doing things the hard way! If you want a new cons
cell, then function `cons' is your man - no need to beat around the bush:

 (defun dummy () (cons 1 . 2))

reply via email to

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