Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRFI 231: array-stack issues #970

Closed
gambiteer opened this issue May 26, 2024 · 1 comment
Closed

SRFI 231: array-stack issues #970

gambiteer opened this issue May 26, 2024 · 1 comment

Comments

@gambiteer
Copy link
Contributor

These should all fail:

heine:~/lang/scheme/srfi-231/srfi-231-temp/chibi-test> chibi-scheme
> (import (srfi 231))
> (array-stack 0 (list (make-array (make-interval '#(2 2)) list) (make-array (make-interval '#(2 2)) list))'a)
#<Array 140719606380320>
> (array-stack 0 (list (make-array (make-interval '#(2 2)) list) (make-array (make-interval '#(2 2)) list)) u1-storage-class'a)
#<Array 140719607326720>
> (array-stack 0 (list (make-array (make-interval '#(2 2)) list) (make-array (make-interval '#(2 2)) list)) u1-storage-class)
#<Array 140719607497344>

This should eval to #t:

>
(equal?
 generic-storage-class
 (array-storage-class
  (array-stack 1
               (list (array-copy (make-array (make-interval '#(10)) (lambda (i) 42)) u8-storage-class)
                     (array-copy (make-array (make-interval '#(10)) (lambda (i) 5000)) u16-storage-class)))))
ERROR: byte-vector-set!: not an octet: 5000
@ashinn
Copy link
Owner

ashinn commented May 27, 2024

Fixed in a8939fe.

@ashinn ashinn closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants