Skip to content

Consider adding a metatable field to types #12

Open

Description

@that-hatter

Function entries are written to have an associated namespace rather than type. This means there's no explicit relation reflected in the yaml files between functions and the "classes" they are a "method" of.

However, the book specifically checks for Card, Effect, and Group and associates them to their respective type when generating sample code so it knows whether to recommend colon notation (c:IsCode(...) instead of Card.IsCode(c,...)).

It might be worth representing this information in the yamls rather than being hardcoded in consuming programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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