diff --git a/piclib/scheme/base.scm b/piclib/scheme/base.scm index d08650b2..ea2699b3 100644 --- a/piclib/scheme/base.scm +++ b/piclib/scheme/base.scm @@ -748,18 +748,18 @@ (import (picrin record)) - (define - (let (( (make-record #t))) ; bootstrap - (let ((type-type (make-record ))) - (record-set! '@@type type-type) - (record-set! type-type 'name ') - ))) + (define #t) ; bootstrap (define (make-record-type name) (let ((rectype (make-record ))) (record-set! rectype 'name name) rectype)) + (set! + (let (( (make-record-type '))) + (record-set! '@@type ) + )) + (define-syntax define-record-constructor (ir-macro-transformer (lambda (form inject compare?)