add <type> type
This commit is contained in:
parent
7a98c3619a
commit
86698f974f
|
@ -748,8 +748,15 @@
|
||||||
|
|
||||||
(import (picrin record))
|
(import (picrin record))
|
||||||
|
|
||||||
|
(define <type>
|
||||||
|
(let ((<type> (make-record #t))) ; bootstrap
|
||||||
|
(let ((type-type (make-record <type>)))
|
||||||
|
(record-set! <type> '@@type type-type)
|
||||||
|
(record-set! type-type 'name '<type>)
|
||||||
|
<type>)))
|
||||||
|
|
||||||
(define (make-record-type name)
|
(define (make-record-type name)
|
||||||
(let ((rectype (make-record #t)))
|
(let ((rectype (make-record <type>)))
|
||||||
(record-set! rectype 'name name)
|
(record-set! rectype 'name name)
|
||||||
rectype))
|
rectype))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue