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

Cannot assign c-string value to struct member #17

Closed
meijeru opened this issue Apr 25, 2011 · 3 comments
Closed

Cannot assign c-string value to struct member #17

meijeru opened this issue Apr 25, 2011 · 3 comments
Labels
status.tested The change in code has been manually tested and verified to fix the issue.

Comments

@meijeru
Copy link
Contributor

meijeru commented Apr 25, 2011

The Todo-list says: "Structs members read & write access: implemented but untested." I compiled the following program:

red/system []
s: struct[a [integer!] b [c-string!]]
s/b: "hello"

This gave the following error message:

** Script Error: emit expected value argument of type: integer word tag
** Where: access-path
** Near: emit/head/store/struct path/1 value offset
@dockimbel
Copy link
Member

Yes, it is broken and it also needs to be refactored as it was written 2 months ago and several things have been changed internally since then. That is why it was put in the todo-list, it is an unfinished work.

@dockimbel
Copy link
Member

Fixed by commit 4e96eec

@dockimbel
Copy link
Member

Tested OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.tested The change in code has been manually tested and verified to fix the issue.
Projects
None yet
Development

No branches or pull requests

2 participants