mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 06:20:23 +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)))
|
(display ">" p)))
|
||||||
type-name
|
type-name
|
||||||
(copy-tree fields))))
|
(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)))
|
struct)))
|
||||||
|
|
||||||
(define (record-type-name obj)
|
(define (record-type-name obj)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue