Subject: Re: Destructors for CLOS objects
From: Erik Naggum <erik@naggum.net>
Date: Thu, 13 Dec 2001 10:13:46 GMT
Newsgroups: comp.lang.lisp
Message-ID: <3217227224777855@naggum.net>

* Rolf Wester <wester@ilt.fhg.de>
| I'm just a Lisp beginner, so I'm not sure wether I'm right. But shouldn't it read:
| 
|   (defmacro with-my-object ((var &rest init-options) &body body)
|     (let ((obj (gensym)))
|       `(let (,obj ,var)
| instead of  `(let (,var ,obj)
| 
| If I'm wrong please correct me.

  There is a huge difference between ((foo bar)) and (foo bar) in let.  The
  former binds foo to the current value of bar.  The latter binds foo and
  bar to nil, the default value in absence of a value in a binding, and the
  order is thus immaterial.

///
-- 
  The past is not more important than the future, despite what your culture
  has taught you.  Your future observations, conclusions, and beliefs are
  more important to you than those in your past ever will be.  The world is
  changing so fast the balance between the past and the future has shifted.