Skip to content

Add metamethods for bitwise operators and remove __gc #5

@Askaholic

Description

@Askaholic

GPG added metamethods for bitwise operators which I didn't do when I added them. The methods are called

"__band", "__bor", "__bshl", "bshr"

They also removed the __gc metamethod.

For inspiration only, the implementation here should not necessarily be taken as a reference.
https://github.com/lua/lua/blob/75ea9ccbea7c4886f30da147fb67b693b2624c26/ltm.c#L43

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions