How to require multiple modules in a single statement?
<p>I want to require several Lua modules at once, similar the to the asterisk signifier from  Java (<code>import java.awt.*</code>). This the structure I organized my modules in subdirectories:</p>

<pre><code>&lt;myapp&gt;
 -- calculations
    -- calc1
    -- calc2
    -- calc3
 -- helper
     -- help1
     -- help2
     -- print
          --graphprinter
          --matrixprinter
</code></pre>

<p>My client requires each module of a subpath:</p>

<pre><code> local graphprinter = require("myapp.helper.print.graphprinter")
 local matrixprinter = require("myapp.helper.print.matrixprinter")
</code></pre>

<p>I would prefer an automatic multi-require, which derives the local table names from the module path and requires a whole subpath at once. This could be the format: <code>require("myapp.helper.print.*")</code>. Automatically the local table names should be created for each module of the subdirectory, so that there isn't any difference as I would have required them module by module.</p>