[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: About a week with LUA_NOCVTN2S and LUA_NOCVTS2N
- From: Coda Highland <chighland@...>
- Date: Fri, 23 Jan 2015 10:58:24 -0800
On Fri, Jan 23, 2015 at 10:09 AM, Andrew Starks <email@example.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.