lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

David Given wrote:
This is a rather big 'all': it's *not* something that can be done portably on any system.

Actually, my current cheat (because I can't be bothered to do what you've described yet ;) is to use the same syntax tree to compute all the primitive types of function dispatch, spit it out in a C file, compile it into a (dynamic) library, and then use that to dispatch the calls. Wonderfully portable, an acceptable level of hackiness - the only real downsides with it is it need preprocessing (but then so do the data structures from the syntax tree), and that it can't support varargs.