Skip to content

Conversation

@XmiliaH
Copy link
Contributor

@XmiliaH XmiliaH commented Nov 23, 2025

Use .. instead of table.concat to call the __concat metamethod.

The following script would fail before since table.concat cannot handle tables.

local t = setmetatable({}, {__concat=function(a, b) return b end})
print(1 .. t .. "a")

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