Skip to content
Discussion options

You must be logged in to vote

Looks okay to me, state is Arc so clones are very cheap (just increasing number of references).

Another option is saving state in Lua application data Lua::set_app_data which can be retrieved anywhere inside Lua function using Lua::app_data_ref

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 FelicitusNeko
@FelicitusNeko
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