mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
Merge branch 'master' of github.com:justinethier/cyclone
This commit is contained in:
commit
e257b009c4
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.21 - TBD
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
|
||||||
|
- Add type checking to record type accessor functions. We now raise an error if the passed object is of the wrong record type.
|
||||||
|
|
||||||
## 0.20 - August 14, 2020
|
## 0.20 - August 14, 2020
|
||||||
|
|
||||||
Features
|
Features
|
||||||
|
|
|
@ -2005,12 +2005,12 @@
|
||||||
(lambda (obj)
|
(lambda (obj)
|
||||||
(if (eq? (vector-ref obj 1) name)
|
(if (eq? (vector-ref obj 1) name)
|
||||||
(vector-ref (vector-ref obj 2) idx)
|
(vector-ref (vector-ref obj 2) idx)
|
||||||
(error "Invalid type" obj "expected" name))))
|
(error "Invalid type" obj 'expected name))))
|
||||||
(define (make-setter sym name idx)
|
(define (make-setter sym name idx)
|
||||||
(lambda (obj val)
|
(lambda (obj val)
|
||||||
(if (eq? (vector-ref obj 1) name)
|
(if (eq? (vector-ref obj 1) name)
|
||||||
(vector-set! (vector-ref obj 2) idx val)
|
(vector-set! (vector-ref obj 2) idx val)
|
||||||
(error "Invalid type" obj "expected" name))))
|
(error "Invalid type" obj 'expected name))))
|
||||||
|
|
||||||
;; Find index of element in list, or #f if not found
|
;; Find index of element in list, or #f if not found
|
||||||
(define _list-index
|
(define _list-index
|
||||||
|
|
Loading…
Add table
Reference in a new issue