Hi Dave,
I'm glad my code was useful for you.
What I mean is, if you pass an array to luaL_register(), it's faster than having a loop and calling lua_register in each loop code execution.
I believe C is somewhat faster than PB, but of course a few millisecs are not that important since I'm not planning to code anything which need high precision, e.g. a sound driver, etc.
I'm just trying to avoid a pretty long startup time, till the PB interface loads the interpreter and makes every custom function visible.
One day I'll get around this, finally sit down and finish my project and then we'll see if this has a serious effect on the startup time.
Anyways, PB gave me way more than I could wish for, so I'm not complaining at all

Also, LUA is really wonderful and I'm glad we finaly reached a working solution.
Thanks everyone
Erion