|
Post by Franky on Sept 22, 2016 17:04:08 GMT
Hi, in LUA, type() is a core function that returns the type of data passed to it: refI am facing problems because Ankulua defined a type() function, used to "type" text, that conflicts with the core LUA function This is unfortunate because - the core type() function is needed in some situations - it prevents using many libraries (ex JSON.lua) Is there any way to access the core LUA type() function?
|
|
|
Post by AnkuLua on Sept 23, 2016 0:26:31 GMT
Change type() to typeOf()
|
|
|
Post by Franky on Sept 23, 2016 7:22:09 GMT
just what I was looking for, thanks
|
|
|
Post by antonb on Jan 3, 2021 14:21:37 GMT
This is not how it should be done to overwrite core functions of lua. Consider to make something like Ankulua:type()
|
|
|
Post by AnkuLua on Jan 4, 2021 7:31:32 GMT
This is not how it should be done to overwrite core functions of lua. Consider to make something like Ankulua:type() The reason is because compatible with Sikuli.
|
|