-
Notifications
You must be signed in to change notification settings - Fork 10
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
Private members should perhaps not be readable #16
Comments
This issue is a bit complicated, but the main problem is not in DynamicLua but in NLua: So a simple workaround is to rename the property. Interestingly then your code returns Please note that the code throws the correct exception, when the access goes through DynamicLua, which is even a bit simpler that to return the value from Lua.
So this basically a bad design decision in NLua... I'll close this issue as wont-fix, feel free to report it to NLua! |
I just reported this issue to NLua: NLua/NLua#98 |
ok! |
They fixed it, so you could try using DynamicLua with a new version of the NLua.dll. Probably I will also push fixed version soon (or solve the dependency problem some other way, especially for Mono...) |
great! |
As it seems, privates can be read from. The assertion fails:
with
The text was updated successfully, but these errors were encountered: