Skip to content

array and struct instance in runtime structure #454

Closed Answered by rossberg
q82419 asked this question in Q&A
Discussion options

You must be logged in to vote

Q1: (array.ref) is a "pattern" in the test assertion language, it is matched by any array reference. There is no way to talk about specific array addresses on the assertion level, so that's the most specific construct provided. If more concrete checks are needed, they have to be coded up inside a Wasm module.

Q2: Similarly, (array.eq) is a pattern matched by all references that are subtypes of eqref. This test simply checks that arrays are correctly treated as equality types in assertions. It doesn't imply anything about the identity of the reference. (Reference identity cannot be checked with assertion patterns alone, see Q1.)

Q3: No, struct and array instances are the runtime representa…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@q82419
Comment options

@rossberg
Comment options

@q82419
Comment options

Answer selected by q82419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants