mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15: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
|
||||
|
||||
## 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
|
||||
|
||||
Features
|
||||
|
|
|
@ -2005,12 +2005,12 @@
|
|||
(lambda (obj)
|
||||
(if (eq? (vector-ref obj 1) name)
|
||||
(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)
|
||||
(lambda (obj val)
|
||||
(if (eq? (vector-ref obj 1) name)
|
||||
(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
|
||||
(define _list-index
|
||||
|
|
Loading…
Add table
Reference in a new issue