Skip to content

Handle unnamed function #59

@MisinformedDNA

Description

@MisinformedDNA

The believe the following three statements should be identical.

LimboConsole.register_command(multiply, "m1")
LimboConsole.register_command(
    func multiply(a: float, b: float) -> void:
        LimboConsole.info("a * b: " + str(a * b)),
    "m2")
LimboConsole.register_command(
    func(a: float, b: float) -> void:
        LimboConsole.info("a * b: " + str(a * b)),
    "m3")

func multiply(a: float, b: float) -> void:
    LimboConsole.info("a * b: " + str(a * b))

However, the third one doesn't show up.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions