[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
incorrectly redefining system functions
- To: bug-lisp at MIT-MC
- Subject: incorrectly redefining system functions
- From: Dave Touretzky at CMU-10A
- Date: Tue, 14 Sep 82 01:50:00 GMT
- Cc: Jon Rosenberg at CMU-10A
- Original-date: 13 September 1982 2150-EDT
If you redefine a system SUBR as an LSUBR, the ARGS info doesn't get
updated under Twenex MacLisp (version 2130 on CMUC), but it is updated
correctly in the TOPS-10 version (number 2129 on CMUA.) For example,
if you compile the following
(DEFUN OUT NARGS (CONS 'OUTRAGEOUS: (LISTIFY NARGS)))
you naturally get a warning from COMPLR about "redefining a system
function." If you then load the fasl file under TOPS-10 MacLisp and do
(ARGS 'OUT) you get NIL. If you load the exact same fasl file into a
Twenex MacLisp, (ARGS 'OUT) returns (NIL . 2), and if you call OUT you get
a wrong number of arguments error.
-- Dave Touretzky