From 49dce51ff80140c2eda604cd0b7c2556c6360037 Mon Sep 17 00:00:00 2001 From: Djomanix Date: Thu, 12 Jun 2014 15:46:23 -0400 Subject: [PATCH] Added the 'run' method who is in charge of the infinite loop Signed-off-by: Djomanix --- lib/pnacl.nit | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/pnacl.nit b/lib/pnacl.nit index 3216b73..fde40f3 100644 --- a/lib/pnacl.nit +++ b/lib/pnacl.nit @@ -712,10 +712,16 @@ class PnaclApp # Checks if there is a dictionary in the queue, and if so the dictionary is handled automatically. fun check_dictionary `{ - while(1) { - NitHandleDictionary(); - } + NitHandleDictionary(); `} + + # Infinite loop on check_dictionary + fun run + do + loop + check_dictionary + end + end end redef interface Object -- 1.7.9.5