[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with hash-table-setf and system-functions
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Problems with hash-table-setf and system-functions
- From: Ulrich Hoffmann <uho@informatik.uni-kiel.dbp.de>
- Date: Wed, 19 May 1993 17:38:01 +0200
- X400-content-type: P2-1984 (2)
- X400-mts-identifier: [/PRMD=uni-kiel/ADMD=dbp/C=de/;gutemine 024613.0737825881000]
- X400-originator: uho@informatik.uni-kiel.dbp.de
- X400-received: by mta ixgate.gmd.de in /PRMD=GmD/ADMD=DbP/C=DE/; Relayed; Wed, 19 May 1993 17:37:29 +0200
- X400-received: by /PRMD=uni-kiel/ADMD=dbp/C=de/; Relayed; Wed, 19 May 1993 17:38:01 +0200
- X400-recipients: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
I've discovered a problem with setf on hash-tables with functions.
While CLISP compiles the following code without errors, it cannot read
back the generated .fas-file:
test.lsp------------------------------------------------------------------------
(defvar *v*)
(defun f()
(setq *v* (make-hash-table))
(setf (gethash 'list) #'list))
--------------------------------------------------------------------------------
minnie% clisp
...
|
------+------ Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
> (compile-file "test")
Compiling file /tmp_mnt/home/karlo/uho/clicc/src/compiler/test.lsp ...
Compilation of file /tmp_mnt/home/karlo/uho/clicc/src/compiler/test.lsp is finished.
0 errors, 0 warnings
T
> (load "test")
;; Loading file /tmp_mnt/home/karlo/uho/clicc/src/compiler/test.fas ...
*** - READ from #<STRING-CHAR-FILE-STREAM #"/tmp_mnt/home/karlo/uho/clicc/src/compiler/test.fas">: objects printed as #<...> cannot be read back in
1. Break>
--------------------------------------------------------------------------------
The problem seems to be, that the (function list) becomes the
unprintable object #<SYSTEM-FUNCTION LIST> in the .fas file.
Any comments?
Ulrich
Ulrich Hoffmann email: uho@informatik.uni-kiel.dbp.de
Institut fuer Informatik, Universitaet Kiel Tel: +49 431 560426
Preusserstr 1-9, D-2300 Kiel 1, Germany Fax: +49 431 566143