Skip to content

Support fixed length list type in Component Model #153

Description

@tanishiking

We haven't implemented CanonicalABI convertion for fixed length list in

and same in genLoadMemory and in ScalaJSToCABI.scala.


🔧 A list with a fixed length provides the low-level memory representation of a
homogeneous tuple of the same length, but with the dynamic indexing of a
list. E.g., the following two functions have the same low-level (Core
WebAssembly) representation, but will naturally produce different source-level
bindings:

get-ipv4-address1: func() -> list<u8, 4>;
get-ipv4-address2: func() -> tuple<u8, u8, u8, u8>;

https://github.com/WebAssembly/component-model/blob/3aa202d7f21e604caa9fcae192c75a67ccfd9822/design/mvp/WIT.md?plain=1#L1750-L1754

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions