cleanup: remove old 'special' keyword
authorJean Privat <jean@pryen.org>
Wed, 20 Feb 2013 14:40:27 +0000 (09:40 -0500)
committerJean Privat <jean@pryen.org>
Wed, 20 Feb 2013 14:40:27 +0000 (09:40 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

14 files changed:
doc/developpez/poo/listings/coercition1_c.nit
doc/developpez/poo/listings/type1_c.nit
doc/developpez/poo/listings/type5_s.nit
doc/developpez/poo/poo.tex
src/parser/parser_nodes.nit
tests/test_ffi_c_more.nit
tests/test_ni_cast_extra.nit
tests/test_ni_new.nit
tests/test_ni_pointer.nit
tests/test_ni_special_all_native.nit
tests/test_ni_special_from_native.nit
tests/test_ni_special_pointer.nit
tests/test_ni_special_to_native.nit
tests/test_ni_super.nit

index a923579..83be83d 100644 (file)
@@ -2,7 +2,7 @@ class Animal
 end
 
 class Vache
-       special Animal
+       super Animal
 
        fun broute 
        do
index 135b7b9..cf3ad76 100644 (file)
@@ -1,6 +1,6 @@
 abstract class Aliment end
 
-class Herbe special Aliment end
+class Herbe super Aliment end
 
 class Animal
        type REGIME: Aliment
@@ -9,7 +9,7 @@ class Animal
 end
 
 class Vache
-       special Animal
+       super Animal
 
        redef type REGIME: Herbe
 end
index 72f3290..82e28e2 100644 (file)
@@ -1,5 +1,5 @@
 class XMLDocument 
-       special Graph 
+       super Graph
 
        redef var nodes: Array[XMLNode] = new Array[XMLNode]
 
index b5e11bb..8c94b9b 100644 (file)
@@ -370,7 +370,7 @@ En Nit, il est possible d'impl
 \r
 Voici la syntaxe d'une interface :\r
 \begin{lstlisting}[language=Nit]\r
-    interface nom_interface [special interface_mere...]\r
+    interface nom_interface [super interface_mere...]\r
         ...\r
     end\r
 \end{lstlisting}\r
@@ -512,4 +512,4 @@ Il est aussi possible de red
 Dans cet exemple nous avons redéfini la méthode to\_s de la classe String afin de retourner toutes les chaines en majuscules.\r
 \r
 \chapter{Importation de la bibliothèque standard}\r
-Il faut noter que les modules de la bibliothèque standard sont toujours importés implicitement lors de la compilation si aucun import n'a été spécifié. Par exemple il n'est pas nécessaire d'importer le module string pour utiliser la classe String.
\ No newline at end of file
+Il faut noter que les modules de la bibliothèque standard sont toujours importés implicitement lors de la compilation si aucun import n'a été spécifié. Par exemple il n'est pas nécessaire d'importer le module string pour utiliser la classe String.\r
index fd67aa5..c58c66a 100644 (file)
@@ -571,43 +571,43 @@ abstract class AExternCall
        super Prod
 end
 abstract class APropExternCall
-special AExternCall
+super AExternCall
 end
 class ALocalPropExternCall
-special APropExternCall
+super APropExternCall
     readable var _n_methid: AMethid
 end
 class AFullPropExternCall
-special APropExternCall
+super APropExternCall
     readable var _n_classid: TClassid
     readable var _n_quad: nullable TQuad = null
     readable var _n_methid: AMethid
 end
 class AInitPropExternCall
-special APropExternCall
+super APropExternCall
     readable var _n_classid: TClassid
 end
 class ASuperExternCall
-special AExternCall
+super AExternCall
     readable var _n_kwsuper: TKwsuper
 end
 abstract class ACastExternCall
-special AExternCall
+super AExternCall
 end
 class ACastAsExternCall
-special ACastExternCall
+super ACastExternCall
     readable var _n_from_type: AType
     readable var _n_kwas: TKwas
     readable var _n_to_type: AType
 end
 class AAsNullableExternCall
-special ACastExternCall
+super ACastExternCall
     readable var _n_type: AType
     readable var _n_kwas: TKwas
     readable var _n_kwnullable: TKwnullable
 end
 class AAsNotNullableExternCall
-special ACastExternCall
+super ACastExternCall
     readable var _n_type: AType
     readable var _n_kwas: TKwas
     readable var _n_kwnot: TKwnot
@@ -1185,7 +1185,7 @@ class ABreakClosureId
     readable var _n_kwbreak: TKwbreak
 end
 class AModuleName
-special Prod
+super Prod
     readable var _n_quad: nullable TQuad = null
     readable var _n_path: List[TId] = new List[TId]
     readable var _n_id: TId
index 51d2a6b..d268855 100644 (file)
@@ -63,18 +63,18 @@ extern A
 end
 
 extern B
-special A
+super A
 end
 
 extern C `{int*`}
 end
 
 extern D
-special C
+super C
 end
 
 extern E
-special C
+super C
 end
 
 var a = new A
index b8f0274..96a239a 100644 (file)
@@ -23,13 +23,13 @@ class B
 end
 
 class C
-special A
+super A
     fun isa_a : Bool is extern import C as(A)
 end
 
 class D # triangle
-special A
-special B
+super A
+super B
     init do end
     fun as_a : A is extern import D as(A)
 end
index 55b5d76..e25214e 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-extern A special Pointer
+extern A super Pointer
        new is extern import p
        new with_args( x : Int, a : A ) is extern
 
index b248ec1..896d641 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 extern A
-special Pointer
+super Pointer
        new is extern
 
        redef fun to_s : String is extern import String::from_cstring
index 38062f3..55e1900 100644 (file)
@@ -20,7 +20,7 @@ class A
 end
 
 class B
-special A
+super A
        redef fun work is extern
 end
 
index 8d0cda9..6a8c2ef 100644 (file)
@@ -20,7 +20,7 @@ class A
 end
 
 class B
-special A
+super A
        redef fun nity do print "B"
 end
 
index 29b2157..6c4a43c 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-extern ExternInt special Pointer
+extern ExternInt super Pointer
        new as_0 is extern
        new as_1 is extern
        new as_2 is extern
index 07a3ef1..0ba73d2 100644 (file)
@@ -20,7 +20,7 @@ class A
 end
 
 class B
-special A
+super A
        redef fun extern_echo is extern
        redef fun echo do print "B"
 end
index a76be8e..2595e8a 100644 (file)
@@ -19,7 +19,7 @@ class A
 end
 
 class B
-special A
+super A
        redef fun id : String is extern import super, String::from_cstring, String::to_cstring
 end