20

I updated from lua 5.1 to 5.3.2 , One of my scripts didn't work cause of attempt to call a nil value (global 'loadstring') So, did they replace it with a new function?

There you can find the function https://www.lua.org/pil/8.html
There you can test it ( won't work) http://www.lua.org/cgi-bin/demo

Slavi
  • 576
  • 1
  • 3
  • 18
  • 2
    Step through the versions of the Reference Manual, reading the "Incompatibilities with the Previous Version" section. – Tom Blodget Jun 06 '16 at 04:11

1 Answers1

29

Since Lua 5.2, loadstring has been replaced by load.

From Lua 5.2 reference manual:

Function loadstring is deprecated. Use load instead; it now accepts string arguments and are exactly equivalent to loadstring.

Yu Hao
  • 119,891
  • 44
  • 235
  • 294