title: Is it possible to figure out the return value of a function in lua? Or whether or not a function returns anything?
body: <p>Lets say for example I have made a function and it's purpose is to analyze another function supplied as a parameter and return whether or not the function specified will return anything, and if so what value it will return.</p>
  
  <pre><code>local function CheckFunctionReturn(func)
    --return whether func would return anything.
  end
  local function myFunc()
    return 123;
  end
  CheckFunctionReturn(myFunc);
  </code></pre>
  
  <p>I am stuck with this. Perhaps there is a function in the debug library that can help? I would appreciate any help.</p>