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

pairs() does not work for C# objects #17

Open
nrother opened this issue Aug 26, 2014 · 0 comments
Open

pairs() does not work for C# objects #17

nrother opened this issue Aug 26, 2014 · 0 comments

Comments

@nrother
Copy link
Owner

nrother commented Aug 26, 2014

pairs() iterates over all key inside a tables. Since C# objects are userdata, pairs does not work. These is a metamethod called __pairs so it should might be possible to add support for pairs to C# objects.

The problem is, that such object are not modified by DynamicLua, maybe this change has to be done in NLua.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant