title: lua : is declaring a table to 'host' all the graphic elements a bad practice?
body: <p>i never learnt 'academic' coding, so i hope my question is not stupid.</p>
  
  <p>To fix the problem of local/global declaration of variables, i took the habit to create a local table at the beginning of a file to host all the future objects:</p>
  
  <pre><code>local g = {} 
  g.myRectangle = display.newRect(...)
  g.myImage = display.newImg(...)
  </code></pre>
  
  <p>Is that a bad practice? I suspect it slows down the overall applications, but I am not sure. After all, all my variables are <code>local</code>.</p>