Skip to content

Should cont.new be constant? #145

@tlively

Description

@tlively

Should cont.new be allowed to appear in global initializers, element segment items, etc.? The explainer does not currently say either way. For comparison, ref.func, struct.new, and array.new are all constant. I think it would make sense to allow cont.new to be constant, too. That would allow globals and tables to be initialized with continuations. Other new instructions should not be constant because they have observable side effects.

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