lua-users home
lua-l archive

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


Am 13.11.2014 um 22:02 schröbte Tim Hill:

On Nov 13, 2014, at 2:26 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

       I tried to have the strings as string.dump(load(scriptAsString)) but
that still has the text of the script

Try string.dump(load(scriptAsString,"=none"))


Is this documented anywhere? .. I was unaware of this trick.

In the manual entry for `load`[1] and `lua_Debug`[2] (more precisely the `source` field).


—Tim


Philipp

  [1]: http://www.lua.org/manual/5.2/manual.html#pdf-load
  [2]: http://www.lua.org/manual/5.2/manual.html#4.9