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

Bugs in declare! docs #220

Open
hiiamboris opened this issue Feb 28, 2020 · 0 comments
Open

Bugs in declare! docs #220

hiiamboris opened this issue Feb 28, 2020 · 0 comments

Comments

@hiiamboris
Copy link
Contributor

hiiamboris commented Feb 28, 2020

1


s/c: declare struct! [d [integer!] e [float!]] it should be

2

And just below:

12 + 4 (integer) + 8 (float) = 24 in my book, not 20 bytes

3

The returned value of DECLARE STRUCT! is the memory address of the newly created struct! value.

It is never stated that structure is static (only allocated once), so is dangerous to use inside functions (see red/red@069f335 commit)

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

1 participant