FAForever / FAForever/lua-lang

Add metamethods for bitwise operators and remove `__gc`

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

GPG added metamethods for bitwise operators which I didn't do when I added them. The methods are called
```c
"__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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.