Skip to content

Goto forbidden by Go #10

@dennwc

Description

@dennwc

Go has more strict rules regarding what goto jumps are valid.

cxgo currently doesn't reflow goto automatically. So "bad" goto will fail to compile in Go.

There is a workaround implemented in cxgo as one of the "ugly" ways to make the code compile. This workaround will completely flatten the code in a specified function.

We can try to implement a proper reflow algorithm, since those kind of goto statements are quite common.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions