Skip to content

Only call the function and not run the whole script #446

Answered by cloudwindy
techierishi asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think it's possible, the whole script have to be executed to get the function. Imagine this situation:

local b
function a()
  print(b)
end
b = 123

Any part of the code can effectively change how the behavior of that function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by techierishi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants