Open
Description
Currently there doesn't seem to be a way to inspect a class and its methods/properties from C/Cpp.
Lua uses a table structure that can be inspected, and while it may be possible to add a properties map in the class with a specific name that can be used to manage the handles, this is at best an iffy workaround.
Any plans or suggestions on how this could/should be handled?
My first guess (which I'm not sure is the case already), would be to follow the same pattern Lua does by making the class handle also a map, so as long as you know the class name you can inspect its properties. This could also allow for checking if a handle has a callable method before using wrenCall and avoiding a runtime error.
Metadata
Metadata
Assignees
Labels
No labels