title: Lua scripts stored in memory
body: <p>I'm facing problem with lua,</p>
  
  <p>Everytime I'm executing a function/command or even define a variable, everything is stored as a string in memory.</p>
  
  <p>And it can be read via programs like Cheat Engine or HxD</p>
  
  <p>For example</p>
  
  <pre><code> x = 'Test'
  </code></pre>
  
  <p>If I search for the string x = '
  I will be able to extra the whole command from memory.
  Same for functions</p>
  
  <pre><code>function Test()
     print(1);
  end
  </code></pre>
  
  <p>Searching Test() will allow me to obtain the whole function script.</p>
  
  <p>Here's an example image
  <a href="http://i40.tinypic.com/6oh281.png" rel="nofollow">http://i40.tinypic.com/6oh281.png</a></p>
  
  <p>as you can see in the bottom of the Memory Viewer window, theres the whole function information.</p>
  
  <p>Now how could I prevent lua from creating 'extra' copies of the script in memory?
  Garbagecollector does not wipe it out.</p>
  
  <p>Any solution or idea to prevent this would be welcomed.</p>