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

string.pack and string.unpack are not implemented #96

Open
RussellHaley opened this issue Feb 17, 2019 · 3 comments
Open

string.pack and string.unpack are not implemented #96

RussellHaley opened this issue Feb 17, 2019 · 3 comments

Comments

@RussellHaley
Copy link

Hi,
I was pulling my hair out trying to get a script to work and finally found in the documentation that string.pack isn't implemented.

While it would be nice to see string.pack/unpack implemented, I would like to suggest that standard functions which are not complete raise a different error than "Can not call a nil value". I would say just implement a stub function that raises a different error like "Not implemented. See documentation."?

Cheers,
Russ

@neolithos
Copy link
Owner

I will create a exception for this case. This help to find such compatiblity issues.

But a implementation of this methods will take longer, because in my area there is no need.

@RussellHaley
Copy link
Author

It will be helpful for others that may stumble on it. I'm not concerned about the implementation, if I need string.pack, there is now NLua available in 5.3.5. NeoLua is more suited to my current use case exposing .Net classes, rather than being a Lua engine.

@neolithos
Copy link
Owner

NLua uses the lua.dll, so it is full compatible with c-lua by design (language/runtime).
NeoLua is a implementation of the lua-langauge with .net extensions and has a basic implementation of the lua-runtime (it translates the calls to .net functions).

I implemented all functions, that I need for scripts, that our company uses. Other people helped me on other functions... But overall this part needs more attention.

The next big part on my roadmap for this project, will be a redesign of the runtime. But I am busy with other projects, currently.

Help is welcome.

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

2 participants