lua-users home
lua-l archive

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

There is no "3D" in "a="0x12,0x23,0x1e" as its been shown in the code I posted. it might have come because of my mail client...
On Mon, Jan 30, 2012 at 7:47 PM, rahul sharma <> wrote:

I have lua-5.1.4 installed. I fired the following commands:-
> a="0x12,0x23,0x1e"
> string.find(a,',',1)
> print(string.find(a,',',1))
5 5
> b="0x12.0x23.0x1e"
> print(string.find(a,'.',1))
1 1
Why is it giving such a wrong answer??