mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
* boot-9.scm (make-record-type): Use `set-struct-vtable-name!' to
associate a name to the record type descriptor so that the object system can create a wrapper class for it.
This commit is contained in:
parent
efdfceeabe
commit
c8eed87557
1 changed files with 5 additions and 0 deletions
|
@ -394,6 +394,11 @@
|
|||
(display ">" p)))
|
||||
type-name
|
||||
(copy-tree fields))))
|
||||
;; Temporary solution: Associate a name to the record type descriptor
|
||||
;; so that the object system can create a wrapper class for it.
|
||||
(set-struct-vtable-name! struct (if (symbol? type-name)
|
||||
type-name
|
||||
(string->symbol type-name)))
|
||||
struct)))
|
||||
|
||||
(define (record-type-name obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue