The subject for me was "extending Lua with C++" and so loading the final module seemed on topic but my brain tends to go off tracks these days... (I wrote Dub just because I don't want to learn swig).
And while we are _not_ on the subject, I'd like to post some Lua love. The setup with rubyk (
http://rubyk.org) works in such a way that the lua scripts are automagically reloaded when I press save (by periodically checking the file's modification time). This means that I just play with lua (generating music or images) and when I press save, everything instantly updates without a glitch. This enabled me to create my latest exhibition that uses live video and OpenGL in a very short period of time (
http://gaspardbuma.org/en/project853.html) something that has saved me tons of developer-cycles compared to compiled code.
I first thought that I would have to use C/C++ to draw the bezier splines or to handle image analysis but as I was short on time, I just wrote everything with Lua and ... it worked so good on the 3 years old mini mac that I just let it run.