Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#1125 closed defect (duplicate)

defining a function named nil

Reported by: bhyde Owned by:
Priority: minor Milestone:
Component: other Version: 1.9
Keywords: Cc:


It's disgusting I know. I blame the bad company I hang with. One or two of whom like to defining functions on keywords. So I think "Yeah! how about NIL?"

bash-3.2$ ccl64
Welcome to Clozure Common Lisp Version 1.9-r15759  (DarwinX8664)!
? (defun nil () (print :shame-on-you))
Lisp Breakpoint
? for help
[77472] Clozure CL kernel debugger: exit
[77472] Clozure CL kernel debugger: NIL
? (funcall (symbol-function nil))

1 > (ccl:quit)

Change History (5)

comment:1 Changed 7 years ago by gb

Wait ... are you saying that the behavior here isn't having the intended deterrent effect ?

comment:2 Changed 7 years ago by bhyde

I was of the impression that the product manager specify that the kernel debugger would public shame the user by posting something to twitter?

comment:3 Changed 7 years ago by rme

This is a duplicate of ticket:613, by the way.

comment:4 Changed 7 years ago by bhyde

  • Resolution set to duplicate
  • Status changed from new to closed

comment:5 Changed 5 years ago by rme

(In [16649]) Make defun complain if the user attempts to use NIL as a function name. Closes ticket:613, ticket:1101. (And see ticket:1125 too.)

Note: See TracTickets for help on using tickets.