nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbaf8d
)
Added the 'run' method who is in charge of the infinite loop
author
Djomanix
<johan.kayser@viacesi.fr>
Thu, 12 Jun 2014 19:46:23 +0000
(15:46 -0400)
committer
Djomanix
<johan.kayser@viacesi.fr>
Thu, 12 Jun 2014 19:46:23 +0000
(15:46 -0400)
Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
lib/pnacl.nit
patch
|
blob
|
history
diff --git
a/lib/pnacl.nit
b/lib/pnacl.nit
index
3216b73
..
fde40f3
100644
(file)
--- 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