[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clisp question
- To: clisp-list <clisp-list@ma2s2.mathematik.uni-karlsruhe.de>
- Subject: Re: Clisp question
- From: "Tobias Kunze" <tkunze@cmsgia.Stanford.EDU>
- Date: Sun, 11 Feb 1996 17:43:34 -0800
- In-reply-to: Michael Hofbaur <hofbaur@fstgds06.tu-graz.ac.at> "Clisp question" (Feb 11, 8:18pm)
- References: <Pine.3.05.9602111903.A15302-c100000@fstgds06.tu-graz.ac.at>
im almost sure it's not the right solution, but i run
across this problem all the time and it works for me
to define this in my init file:
#+clisp
(defun undef (symbol)
(setf (get symbol 'clos::class) nil))
For some reason, clisp doesn't seem to let you redefine
a class once it's defined:
> (defclass bar () ((x)) )
#<STANDARD-CLASS BAR>
> (defclass bar () ((y)) )
*** - DEFCLASS: Cannot redefine class BAR
1. Break> (get 'bar 'clos::class)
#<STANDARD-CLASS BAR>
1. Break> (undef 'bar)
NIL
1. Break> (get 'bar 'clos::class)
NIL
1. Break> (defclass bar () ((y)) )
#<STANDARD-CLASS BAR>
1. Break> (defclass bar () ((z)) )
*** - DEFCLASS: Cannot redefine class BAR
2. Break>
etc...