Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion I never realized the funny difference between nil and () before.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kaz Kylheku  
View profile  
 More options Nov 2 2011, 1:16 pm
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@kylheku.com>
Date: Wed, 2 Nov 2011 17:16:12 +0000 (UTC)
Local: Wed, Nov 2 2011 1:16 pm
Subject: Re: I never realized the funny difference between nil and () before.
On 2011-11-01, jimka <ji...@rdrop.com> wrote:

> I got this excerpt from Common Lisp the Language, 2nd Edition
> http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node9.html#SECTION00522...

> An empty list may ... be written (); this normally denotes the same
> object as nil.
> (It is possible, by extremely perverse manipulation of the package
> system, to cause the sequence of letters nil to be recognized not as
> the symbol that represents the empty list but as another symbol with
> the same name.)

Forgetting to bring in symbols from the :cl package is hardly perverse,
let alone extremely perverse:

[1]> (defpackage :my-package (:use))
#<PACKAGE MY-PACKAGE>
[2]> (in-package :my-package)
#<PACKAGE MY-PACKAGE>
MY-PACKAGE[3]> nil

*** - SYSTEM::READ-EVAL-PRINT: variable NIL has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of NIL.
STORE-VALUE    :R2      Input a new value for NIL.
ABORT          :R3      Abort main loop


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.