use <foo> style in naming record type
This commit is contained in:
parent
7b251a7129
commit
0610c0e95b
|
@ -1,7 +1,7 @@
|
||||||
(define-library (picrin array)
|
(define-library (picrin array)
|
||||||
(import (scheme base))
|
(import (scheme base))
|
||||||
|
|
||||||
(define-record-type array-type
|
(define-record-type <array>
|
||||||
(create-array data size head tail)
|
(create-array data size head tail)
|
||||||
array?
|
array?
|
||||||
(data array-data set-array-data!)
|
(data array-data set-array-data!)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
(import (scheme base)
|
(import (scheme base)
|
||||||
(picrin macro))
|
(picrin macro))
|
||||||
|
|
||||||
(define-record-type promise
|
(define-record-type <promise>
|
||||||
(make-promise% done obj)
|
(make-promise% done obj)
|
||||||
promise?
|
promise?
|
||||||
(done promise-done? promise-done!)
|
(done promise-done? promise-done!)
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
(define-library (srfi 111)
|
(define-library (srfi 111)
|
||||||
(import (scheme base))
|
(import (scheme base))
|
||||||
|
|
||||||
(define-record-type box-type (box value) box?
|
(define-record-type <box>
|
||||||
(value unbox set-box!))
|
(box value)
|
||||||
|
box?
|
||||||
|
(value unbox set-box!))
|
||||||
|
|
||||||
(export box box?
|
(export box box?
|
||||||
unbox set-box!))
|
unbox set-box!))
|
||||||
|
|
Loading…
Reference in New Issue