Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua] Amended comments in chord.lua
[simgrid.git] / examples / lua / chord / chord.lua
index d7699638156b7f1602556e7897f541924f6b01e2..523581f0e676c4a35d2f3e900b0055663fc46652 100644 (file)
@@ -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