Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add abstract LuaObject superclass for all Lua objects #32

Merged
merged 16 commits into from
Oct 10, 2023
Merged

Conversation

gilzoide
Copy link
Owner

@gilzoide gilzoide commented Oct 9, 2023

  • This simplifies common code between Lua object classes and makes it possible for all of them to be abstract
  • LuaState does not inherit from LuaTable anymore, use the globals property to access the Lua global table
  • LuaObjects now have a Ref to the corresponding LuaState, which avoids problems of objects being used after the Lua state is destroyed

@gilzoide gilzoide merged commit 02e7e08 into main Oct 10, 2023
@gilzoide gilzoide deleted the abstract-table branch October 10, 2023 11:02
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