[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: optimizing defconst
From: |
Davis Herring |
Subject: |
Re: optimizing defconst |
Date: |
Mon, 29 Oct 2007 09:25:01 -0700 (PDT) |
User-agent: |
SquirrelMail/1.4.8-6.el3.2lanl |
> (if (featurep 'xemacs)
> (defvaralias 'viper-xemacs-p t)
> (defvaralias 'viper-xemacs-p nil))
>
> (setq viper-xemacs-p t)
> => Attempt to set a constant symbol: viper-xemacs-p
...which of course simplifies to
(defvaralias 'viper-xemacs-p (featurep 'xemacs))
which is of course identical to `set' in interface, though it only
supports booleans (use "(not (not val))" to convert). That's ...
intensely and simultaneously amusing and disgusting.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
Re: optimizing defconst, John Paul Wallington, 2007/10/27
Re: optimizing defconst, Kim F. Storm, 2007/10/27