Skip to content

return table from registry.add_method #391

Closed Answered by khvzak
brentp asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend createing a table with preallocated capacity to store N elements in array.
Also more efficient would be just using lua.create_sequence_from(v)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@khvzak
Comment options

Answer selected by brentp
@brentp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants