Skip to content

Bitwise operators and floor division operator from Lua 5.3#334

Open
R-033 wants to merge 1 commit intomoonsharp-devs:legacy/2.0from
R-033:master
Open

Bitwise operators and floor division operator from Lua 5.3#334
R-033 wants to merge 1 commit intomoonsharp-devs:legacy/2.0from
R-033:master

Conversation

@R-033
Copy link

@R-033 R-033 commented Dec 18, 2024

Adds support for bitwise operators &, |, ~ (XOR and NOT), << and >>, as well as // from Lua 5.3.

As I understand main reason why these were not implemented in Moonsharp was because it doesn't have an integer type, however I still find these operators useful for running some scripts targeting Lua 5.3. Some other people might find this change valuable as well.

Simoxus added a commit to Simoxus/moonsharp that referenced this pull request Jan 8, 2026
@Benjamin-Dobell Benjamin-Dobell changed the base branch from master to legacy/2.0 March 3, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant