lua-users home
lua-l archive

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


On 9/17/12, Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
> On 9/17/12, Miles Bader <miles@gnu.org> wrote:
>> Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:
>>> The same problem occurs with
>>> 	print(64..s)
>>
>> But, why would anybody write that instead of  print("64"..s) ?
>> -miles
>
> I stumbled upon it when I was trying to write something like this:
> print(n+1..' rabbits')
>
>

So, another wart that would not exist without automatic number-string coercion?

Well I suppose someone would eventually define concat for numbers and
stumble on this error again.