Can not compare numbers and strings

Sep 30, 2014 at 10:51 PM
Version NeoLua 5.3 (0.9.5.0) by neolithos

  source code at http://neolua.codeplex.com
  supported from http://tecware-gmbh.de

  Write ':h' for help.

> k = 1
> print(k == 'n')
>
FormatException: Can not format 'n' to dec.
 at line(LuaGlobal _G) line line:2:1
versus
$ lua
Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> k = 1
> print(k == 'n')
false
Oct 1, 2014 at 8:31 AM
Edited Oct 1, 2014 at 8:45 AM
This is also very unlogic, for me. Because in other cases the force the conversation!

...

Is this only my feeling, that lua is in some cases inconsistent? Or do I not see the big picture?

for example:
1 == '1'
is false but
1 + '1' 
is 2.

I have to thing about the logic emitter. This will take a little bit.
Oct 4, 2014 at 2:52 PM
print(k == 'n')
is in NeoLua false, now.
print(1 == '1')
is in NeoLua true, not like in c-lua false. This is for me logic and acceptable.