From: Djomanix Date: Tue, 10 Jun 2014 19:53:34 +0000 (-0400) Subject: Updated the example for pnacl, to make it work with the threading update X-Git-Tag: v0.6.6~36^2~6 X-Git-Url: http://nitlanguage.org Updated the example for pnacl, to make it work with the threading update Signed-off-by: Djomanix --- diff --git a/examples/pnacl/converter/converter.nit b/examples/pnacl/converter/converter.nit index 4cbf103..bc07608 100644 --- a/examples/pnacl/converter/converter.nit +++ b/examples/pnacl/converter/converter.nit @@ -18,7 +18,8 @@ # # First imports the pnacl module # Then redefines the 'handle_dictionary' method -# Finally creates a converter and initializes it +# Creates a converter and initializes it +# Finally checks for dictionaries import pnacl @@ -123,5 +124,6 @@ class Converter end end -var converter = new Converter -converter.initialize # Needed to correctly set up Nit control over the Pepper API +redef fun app do return once new Converter +app.initialize # Needed to correctly set up Nit control over the Pepper API +app.check_dictionary # Wait for dictionaries