From: Christian Heinrich Date: Thu, 23 Jul 2015 17:03:17 +0000 (+0200) Subject: [Lua] Ported state_cloner code to Lua 5.3 X-Git-Tag: v3_13~1644^2~15 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f1138d93da1ae26ec48c098baccbadc84db8a038 [Lua] Ported state_cloner code to Lua 5.3 --- diff --git a/examples/lua/state_cloner/duplicated_globals.lua b/examples/lua/state_cloner/duplicated_globals.lua index f4df0aeaa3..26fe0e899d 100644 --- a/examples/lua/state_cloner/duplicated_globals.lua +++ b/examples/lua/state_cloner/duplicated_globals.lua @@ -14,7 +14,7 @@ global_string = "A global string set by maestro" -- Assigns to the global string the first argument and prints it function set_global_string(...) - global_string = arg[1] + global_string = select(1, ...) simgrid.info("Changing the global string") print_global() end