-
Notifications
You must be signed in to change notification settings - Fork 30
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
Failure chaining function call and table accesses #13
Comments
Sounds like yet another compiler bug. I'll check it out tonight. |
Thanks |
OK, I confirmed it to be a compiler error, the generated code is inexplicably missing the instruction to do the first index operation (the I'll have a fix up soon, AKA within a few hours of me waking up tomorrow (I'm a bit tired right now). Honestly, I was sure I had all the stupid little edge case bugs squashed long ago, but it seems the compiler is the gift that keeps on giving :P In any case, I am grateful for every bug that is reported, each one found and fixed makes the package just a little bit better. |
OK, so this is proving harder than expected. Normally finding the issue is pretty easy, and fixing it is the "hard" part. This time I'm having trouble identifying what is causing the issue. I'll get it sooner or later, but not as soon as I expected. Sorry. |
Tests pass, and the example provided works. The bug would probably also effect expressions in parenthesis followed by table accessors, not just function calls followed by accessors, but both should work now. Once I figured out where the problem was fixing it was pretty trivial, just as expected. |
It works great. Thanks so much! |
This code works in Lua 5.3.4:
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
Here the X access yields nil, but it works when using an intermediate variable such as:
See attached code.
luatablefunction.zip
The text was updated successfully, but these errors were encountered: