docs icon indicating copy to clipboard operation
docs copied to clipboard

Bugs in `declare!` docs

Open hiiamboris opened this issue 6 years ago • 0 comments

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 https://github.com/red/red/commit/069f33520c00c57f297886fc7272f60a259579bb commit)

hiiamboris avatar Feb 28 '20 18:02 hiiamboris