[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C under Lua
- From: Lisa Parratt <lisa@...>
- Date: Wed, 22 Feb 2006 12:39:44 +0000
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.