nitvm: Fixing a bad allocation of internal structures for attributes
[nit.git] / lib / app.nit
index 3e2d737..5d0a1fd 100644 (file)
 #
 # The features offered by this modules are common to all platforms, but
 # may not be available on all devices.
-module app
+module app is
+       new_annotation app_name
+       new_annotation app_version
+end
 
 # App subclasses are cross-platform applications
 #
@@ -29,7 +32,7 @@ class App
 
        # Starts the internal setup of graphical and other stuff
        # Is called just before run
-       protected fun setup do end
+       fun setup do end
 
        # Main entry point of your application
        fun run do end