We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am consolidating fragments across a few pages, so I could be misreading what was intended. Code is identical in CSUG 9.4 and 9.5.
Tested on 9.5 official binaries, and 9.5.8 build from source:
;; 4.5. Foreign Data (import (chezscheme)) (define-ftype B (struct [b1 integer-32] [b2 (array 10 integer-32)])) (define b (make-ftype-pointer B (foreign-alloc (* (ftype-sizeof B) 3)))) (ftype-set! (b1) b 5) ;; => Exception: invalid syntax (ftype-set! (b1) b 5)
The text was updated successfully, but these errors were encountered:
The last line should be: (ftype-set! B (b1) b 5)
(ftype-set! B (b1) b 5)
See https://cisco.github.io/ChezScheme/csug9.5/foreign.html#./foreign:s152 for a description of ftype-set!.
ftype-set!
Sorry, something went wrong.
Ah, indeed. My bad.
Thanks!
No branches or pull requests
I am consolidating fragments across a few pages, so I could be misreading what was intended. Code is identical in CSUG 9.4 and 9.5.
Tested on 9.5 official binaries, and 9.5.8 build from source:
The text was updated successfully, but these errors were encountered: