]> AND Public Git Repository - simgrid.git/blobdiff - examples/lua/state_cloner/duplicated_globals.lua
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / lua / state_cloner / duplicated_globals.lua
index 516cc77200eaf9dddb73a55390b8277560b0cae6..c0e1518bd350230efedc3f3f79770191cc6f12b2 100644 (file)
@@ -13,26 +13,26 @@ function set_global_string(...)
   print_global()
 end
 
--- Replaces the function please_dont_change_me() by set_global_string()
+-- Replaces the function please_don't_change_me() by set_global_string()
 -- and calls it
 function replace(...)
 
-  simgrid.info("Overwriting function please_dont_replace_me()")
-  please_dont_replace_me = set_global_string
-  please_dont_replace_me(...)
+  simgrid.info("Overwriting function please_don't_replace_me()")
+  please_don't_replace_me = set_global_string
+  please_don't_replace_me(...)
 end
 
 -- Shows a hello message and prints the global string
-function please_dont_replace_me(...)
+function please_don't_replace_me(...)
 
-  simgrid.info("Hello from please_dont_replace_me(). I'm lucky, I still exist in this state.")
+  simgrid.info("Hello from please_don't_replace_me(). I'm lucky, I still exist in this state.")
   print_global()
 end
 
 -- Prints the value of global_string
 function print_global()
 
-  simgrid.info("Global string is '"..global_string.."'")
+  simgrid.info("Global string is '" .. global_string .. "'")
 end
 
 print_global()
@@ -40,5 +40,4 @@ print_global()
 simgrid.platform("../../msg/small_platform.xml")
 simgrid.application("deployment_duplicated_globals.xml")
 simgrid.run()
-simgrid.clean()