[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Numerical constants
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 24 May 2007 11:03:58 -0300
> Somehow I've managed to overlook token filters but they are clearly
> the way to go, especially given the performance concerns I have.
On the other hand, writting token filters in C unfortunately requires you
to know some of the internals of Lua, as the ugly line below shows:
(If seminfo contained an arbitrary Lua value things would be simpler...)
But if you're only dealing with numerical constants, then this won't be needed
(and the code I sent you can be made much simpler).