[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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:
seminfo->ts=rawtsvalue(&L->top[-1]);
(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).
--lhf