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

Improve error reporting of splay.rpc module #36

Open
vschiavoni opened this issue Jun 1, 2015 · 0 comments
Open

Improve error reporting of splay.rpc module #36

vschiavoni opened this issue Jun 1, 2015 · 0 comments

Comments

@vschiavoni
Copy link
Member

Calling a remote function declared as local reports the error "invalid function name..".
But, the name IS valid: but what it is invalid is the attempt to use it.

Example:

function visible()
    print"i am visible"
end
local function invisible()
    print"i am invisible"
end
procedure={"visible","invisible"}
local f, err = loadstring("return "..procedure[1], "call")
f=f()()
local f, err = loadstring("return "..procedure[2], "call")
print(type(f), err)
f=f()()
vschiavoni added a commit that referenced this issue Jun 1, 2015
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