fix defstruct to use allocate-instance properly

svn: r79
This commit is contained in:
Eli Barzilay 2005-06-08 20:59:14 +00:00
parent 9bd930818d
commit 1a7b10972e

View File

@ -30,7 +30,7 @@
(hash-table-put! struct-to-slot-names this slots) (hash-table-put! struct-to-slot-names this slots)
(add-method allocate-instance (add-method allocate-instance
(let ([???s (build-list (length allslots) (lambda _ ???))]) (let ([???s (build-list (length allslots) (lambda _ ???))])
(method ([class = this]) (maker . ???s)))) (method ([class = this] initargs) (maker . ???s))))
(add-method initialize (add-method initialize
(let ([none "-"] (let ([none "-"]
[keys (build-list [keys (build-list