emacs-devel
[Top][All Lists]
Advanced

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

Re: t and nil in pure memory?


From: Sam Steingold
Subject: Re: t and nil in pure memory?
Date: Sun, 22 Nov 2009 01:48:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> * Chong Yidong <address@hidden> [2009-11-20 00:47:18 -0500]:
>
> FWIW, in CLISP and CMUCL (unintern nil) and (unintern t) are no-ops
> returning nil.  Presumably the other CL implementations do likewise.

This is not true about CLISP (and presumably other CL implementations).

[1]> (unintern cl:t)
NIL

This is indeed a noop because the default package is CL-USER and T lived
in CL.

[2]> (unintern cl:t :cl)

** - Continuable Error
UNINTERN(T): #<PACKAGE COMMON-LISP> is locked
If you continue (by typing 'continue'): Ignore the lock and proceed
The following restarts are also available:
ABORT          :R1      Abort main loop
Break 1 [3]> continue
#:T
USER[4]> (find-symbol "T" "CL")
NIL ;
NIL

i.e., it IS possible to remove the T symbol (with all the trouble this
entails).

As a CLISP maintainer, I don't think T & NIL are special enough.
We lock entire packages.
Please see <http://clisp.cons.org/impnotes/pack-lock.html>.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 9.04 (jaunty)
http://iris.org.il http://camera.org http://jihadwatch.org http://pmw.org.il
http://openvotingconsortium.org http://ffii.org http://mideasttruth.com
Computers are like air conditioners: they don't work with open windows!





reply via email to

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