Skip to content

Import dict rather than sequence? e.g. Instance(store, module, {"env": Memory(store, MemoryType(Limits(5, 5)))})  #240

Open
@INPUTrrr0

Description

@INPUTrrr0

Why is the import in Instance defined as "imports: Sequence[AsExtern]" rather than a dict? So instead of having (import "" "hello") in hello.wat, I can have (import "env" "hello"). This would make the import more organized.
(Although linker make use of that first slot in the import, in my understanding it's more like for linking two .wat file files, rather than organizing the imports? Or am I just not understanding how linker works. Please let me know :) )

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions