Skip to content

Fix the "in" operator acting the same as the "rawin" method despite being documented as calling the _get metamethod.#308

Open
BenLubar wants to merge 1 commit intoalbertodemichelis:masterfrom
BenLubar:in-metamethod
Open

Fix the "in" operator acting the same as the "rawin" method despite being documented as calling the _get metamethod.#308
BenLubar wants to merge 1 commit intoalbertodemichelis:masterfrom
BenLubar:in-metamethod

Conversation

@BenLubar
Copy link

@BenLubar BenLubar commented Nov 5, 2025

The documentation for table.rawin says:

returns true if the slot ‘key’ exists. the function has the same effect as the operator ‘in’ but does not employ delegation.

However, x in y currently does not employ delegation either. This PR makes it employ delegation.

…eing documented as calling the _get metamethod.
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