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

displaced array breaks for element-type character #276

Closed
dkochmanski opened this issue Sep 1, 2016 · 2 comments
Closed

displaced array breaks for element-type character #276

dkochmanski opened this issue Sep 1, 2016 · 2 comments

Comments

@dkochmanski
Copy link
Contributor

commit: ffc6111
test case:

> (make-array 3
                    :element-type 'character
                    :displaced-to (make-array 5
                                              :element-type 'character
                                              :initial-contents "abcde")
                    :displaced-index-offset 1)

Condition of type: SIMPLE-ERROR
Cannot displace the array, because the element types don't match

Available restarts:
(use :r1 to invoke restart 1)

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at frame[102] CALL-WITH-VARIABLE-BOUND.
 File: #P"/data/Warsztat/Repozytoria/clasp/src/core/compiler.cc" (Position #37160)
@dkochmanski
Copy link
Contributor Author

> (make-array 5
                               :element-type 'character
                               :initial-contents "abcde")

"abcde"
> (type-of *)

(SIMPLE-ARRAY BASE-CHAR (1 5))

> (subtypep 'base-char 'character)
T
T

@Shinmera
Copy link
Contributor

Shinmera commented Sep 1, 2016

Dupe of #179

@Shinmera Shinmera closed this as completed Sep 1, 2016
dkochmanski added a commit to dkochmanski/clasp that referenced this issue Sep 2, 2016
drmeister pushed a commit that referenced this issue Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants