lib: `sys` and `exit` are toplevel
authorJean Privat <jean@pryen.org>
Tue, 29 Jul 2014 14:07:57 +0000 (10:07 -0400)
committerJean Privat <jean@pryen.org>
Tue, 29 Jul 2014 17:13:37 +0000 (13:13 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/kernel.nit

index fb84d2e..dcd48b5 100644 (file)
@@ -69,12 +69,6 @@ interface Object
        # only and can be removed without any notice
        fun output_class_name is intern 
 
-       # Quit the program with a specific return code
-       protected fun exit(exit_value: Int) is intern
-
-       # Return the global sys object, the only instance of the `Sys` class.
-       protected fun sys: Sys is intern
-
        # The hash code of the object.
        # Assuming that a == b -> a.hash == b.hash
        ##
@@ -95,6 +89,13 @@ class Sys
        `}
 end
 
+# Quit the program with a specific return code
+fun exit(exit_value: Int) is intern
+
+# Return the global sys object, the only instance of the `Sys` class.
+fun sys: Sys is intern
+
+
 ###############################################################################
 # Abstract Classes                                                            #
 ###############################################################################