title: Const double initialised from Lua
body: <p>I have a global variable:</p>
  
  <pre><code>const double myvar = 5.1;
  </code></pre>
  
  <p>Now, I'm converting this to read these values from Lua.</p>
  
  <p>However, I can't simply do:</p>
  
  <pre><code>const double myvar = lua_tonumber(L,1);
  </code></pre>
  
  <p>Since main() must first execute to start the Lua intepreter etc., but if I declare myvar afterwards, it will not be global.</p>
  
  <p>Is there any way to do achieve a global const variable which takes it's value from Lua?</p>