lua-users home
lua-l archive

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


On Fri, Jan 23, 2015 at 10:09 AM, Andrew Starks <andrew.starks@trms.com> wrote:
> I compiled Lua with the LUA_NOCVTN2S (no coercion from numbers to
> string) and LUA_NOCVTS2N (same, but from string to numbers).
>
> In my code, 6 places needed patching, all of them n->s.
>
> In mobdebug, the number of edits was... all over. The vast majority
> were n->s and I only remember one that was s->n.

This sounds like pretty good evidence that LUA_NOCVTS2N is something
that's pretty easy to recommend to people.

I had suspected that the results would be much as you found, although
of course tasks that involve reading data from text streams might make
heavier use of S2N.

/s/ Adam