Skip to content

Unknown command '_'. Skipping. #109

@kalmard0

Description

@kalmard0

While working on my (fairly standard) ink script, the inkcpp compiler keeps outputting the message from the title.

After some research, I found that inkle/ink@ee008e5 (in 2017!) added the _ command as a new name for Negate, calling ~ Invert.

I don't fully understand the distinctions of various commands, but I assume Negate means the unary multiply by -1 operator.

Inkcpp still calls ~ Negate and does not handle _ at all. Surprisingly, so far I haven't noticed actual errors related to this while running my ink script, but maybe I just wasn't paying attention.

I'm also surprised that this hasn't been noticed yet, since the command has been part of ink for a very long time. Is there a reason this is not part of inkcpp? I would be happy to give it a shot and add it, but I'm not sure what the exact steps are to do it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions