Read-only prevents boa on structs. #1722

Open
bjourne opened this Issue Oct 8, 2016 · 1 comment

Projects

None yet

2 participants

@bjourne
Member
bjourne commented Oct 8, 2016

This should work:

STRUCT: hi { a uint read-only } ;
10 hi <struct-boa>
Attempting to define >>a outside of a compilation unit

Type :help for debugging help.
@mrjbq7
Member
mrjbq7 commented Oct 11, 2016

Hah, nice bug find! It seems <struct-boa> is implemented by first allocating memory for the struct and then using the setter words to fill in the values...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment