From: Christian Heinrich Date: Thu, 15 Oct 2015 14:54:55 +0000 (+0200) Subject: [Lua] Amended comments in chord.lua X-Git-Tag: v3_13~1644^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/685c6bee2fb0e39731bce319c545eb4a5301e920 [Lua] Amended comments in chord.lua --- diff --git a/examples/lua/chord/chord.lua b/examples/lua/chord/chord.lua index d769963815..523581f0e6 100644 --- a/examples/lua/chord/chord.lua +++ b/examples/lua/chord/chord.lua @@ -217,7 +217,9 @@ function handle_task(task) else -- FIXME: This is completely wrong here. Fix this; -- we need to figure out what to send if we don't know our - -- predecessor yet + -- predecessor yet (this DOES happen and this means that task.answer + -- is initialised with nil and when task.answer is accessed (not here), it will + -- break in Lua 5.3 (because it is nil). simgrid.critical("Don't know my predecessor yet!") my_node.predecessor = remote_get_predecessor(my_node.fingers[1]) task.answer = my_node.predecessor