From: Jean Privat Date: Wed, 20 Feb 2013 14:40:27 +0000 (-0500) Subject: cleanup: remove old 'special' keyword X-Git-Tag: v0.6~80^2~4 X-Git-Url: http://nitlanguage.org cleanup: remove old 'special' keyword Signed-off-by: Jean Privat --- diff --git a/doc/developpez/poo/listings/coercition1_c.nit b/doc/developpez/poo/listings/coercition1_c.nit index a923579..83be83d 100644 --- a/doc/developpez/poo/listings/coercition1_c.nit +++ b/doc/developpez/poo/listings/coercition1_c.nit @@ -2,7 +2,7 @@ class Animal end class Vache - special Animal + super Animal fun broute do diff --git a/doc/developpez/poo/listings/type1_c.nit b/doc/developpez/poo/listings/type1_c.nit index 135b7b9..cf3ad76 100644 --- a/doc/developpez/poo/listings/type1_c.nit +++ b/doc/developpez/poo/listings/type1_c.nit @@ -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 diff --git a/doc/developpez/poo/listings/type5_s.nit b/doc/developpez/poo/listings/type5_s.nit index 72f3290..82e28e2 100644 --- a/doc/developpez/poo/listings/type5_s.nit +++ b/doc/developpez/poo/listings/type5_s.nit @@ -1,5 +1,5 @@ class XMLDocument - special Graph + super Graph redef var nodes: Array[XMLNode] = new Array[XMLNode] diff --git a/doc/developpez/poo/poo.tex b/doc/developpez/poo/poo.tex index b5e11bb..8c94b9b 100644 --- a/doc/developpez/poo/poo.tex +++ b/doc/developpez/poo/poo.tex @@ -370,7 +370,7 @@ En Nit, il est possible d'impl Voici la syntaxe d'une interface : \begin{lstlisting}[language=Nit] - interface nom_interface [special interface_mere...] + interface nom_interface [super interface_mere...] ... end \end{lstlisting} @@ -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. \chapter{Importation de la bibliothèque standard} -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. diff --git a/src/parser/parser_nodes.nit b/src/parser/parser_nodes.nit index fd67aa5..c58c66a 100644 --- a/src/parser/parser_nodes.nit +++ b/src/parser/parser_nodes.nit @@ -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 diff --git a/tests/test_ffi_c_more.nit b/tests/test_ffi_c_more.nit index 51d2a6b..d268855 100644 --- a/tests/test_ffi_c_more.nit +++ b/tests/test_ffi_c_more.nit @@ -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 diff --git a/tests/test_ni_cast_extra.nit b/tests/test_ni_cast_extra.nit index b8f0274..96a239a 100644 --- a/tests/test_ni_cast_extra.nit +++ b/tests/test_ni_cast_extra.nit @@ -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 diff --git a/tests/test_ni_new.nit b/tests/test_ni_new.nit index 55b5d76..e25214e 100644 --- a/tests/test_ni_new.nit +++ b/tests/test_ni_new.nit @@ -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 diff --git a/tests/test_ni_pointer.nit b/tests/test_ni_pointer.nit index b248ec1..896d641 100644 --- a/tests/test_ni_pointer.nit +++ b/tests/test_ni_pointer.nit @@ -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 diff --git a/tests/test_ni_special_all_native.nit b/tests/test_ni_special_all_native.nit index 38062f3..55e1900 100644 --- a/tests/test_ni_special_all_native.nit +++ b/tests/test_ni_special_all_native.nit @@ -20,7 +20,7 @@ class A end class B -special A +super A redef fun work is extern end diff --git a/tests/test_ni_special_from_native.nit b/tests/test_ni_special_from_native.nit index 8d0cda9..6a8c2ef 100644 --- a/tests/test_ni_special_from_native.nit +++ b/tests/test_ni_special_from_native.nit @@ -20,7 +20,7 @@ class A end class B -special A +super A redef fun nity do print "B" end diff --git a/tests/test_ni_special_pointer.nit b/tests/test_ni_special_pointer.nit index 29b2157..6c4a43c 100644 --- a/tests/test_ni_special_pointer.nit +++ b/tests/test_ni_special_pointer.nit @@ -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 diff --git a/tests/test_ni_special_to_native.nit b/tests/test_ni_special_to_native.nit index 07a3ef1..0ba73d2 100644 --- a/tests/test_ni_special_to_native.nit +++ b/tests/test_ni_special_to_native.nit @@ -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 diff --git a/tests/test_ni_super.nit b/tests/test_ni_super.nit index a76be8e..2595e8a 100644 --- a/tests/test_ni_super.nit +++ b/tests/test_ni_super.nit @@ -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