fix defstruct to use allocate-instance properly
svn: r79
This commit is contained in:
parent
9bd930818d
commit
1a7b10972e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user