Skip to content

tableswitch case labels? #439

@kripken

Description

@kripken

While implementing tableswitch in wasm-emscripten, I realized that cases have labels. Can they be br-ed to? Asking @sunfishcode , there wasn't an obvious answer, so this looks unspecified, opening this for discussion.

  • One option is no, one cannot br on the labels of cases. But one can do so on the switch itself to exit it.
  • Another option is yes, but then what does the br do? Normally a br to name: {} gets to right after those {}. But @sunfishcode said he thought maybe it should go inside. In other words, inside switches, case blocks could goto to other case blocks?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions