A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Lua] Ported state_cloner code to Lua 5.3
[simgrid.git]
/
examples
/
lua
/
state_cloner
/
duplicated_globals.lua
diff --git
a/examples/lua/state_cloner/duplicated_globals.lua
b/examples/lua/state_cloner/duplicated_globals.lua
index
f4df0ae
..
26fe0e8
100644
(file)
--- 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