From: Alexandre Terrasa Date: Thu, 14 Apr 2011 20:45:12 +0000 (-0400) Subject: src & doc: change all remaining occurences of "special" by "super" keyword X-Git-Tag: v0.5~46^2~1 X-Git-Url: http://nitlanguage.org src & doc: change all remaining occurences of "special" by "super" keyword Signed-off-by: Alexandre Terrasa Signed-off-by: Jean Privat --- diff --git a/doc/developpez/poo/listings/type3_s.nit b/doc/developpez/poo/listings/type3_s.nit index 607eb81..9ace3cd 100644 --- a/doc/developpez/poo/listings/type3_s.nit +++ b/doc/developpez/poo/listings/type3_s.nit @@ -1,3 +1,3 @@ -class XMLDocument special Graph end +class XMLDocument super Graph end -class XMLNode special Node end +class XMLNode super Node end diff --git a/doc/developpez/poo/listings/type6_s.nit b/doc/developpez/poo/listings/type6_s.nit index 69fec03..25acb5d 100644 --- a/doc/developpez/poo/listings/type6_s.nit +++ b/doc/developpez/poo/listings/type6_s.nit @@ -12,12 +12,12 @@ end class Node end class XMLDocument - special Graph + super Graph redef type NODE: XMLNode end -class XMLNode special Node end +class XMLNode super Node end var doc = new XMLDocument diff --git a/src/metamodel/static_type.nit b/src/metamodel/static_type.nit index fc1f684..c44efb9 100644 --- a/src/metamodel/static_type.nit +++ b/src/metamodel/static_type.nit @@ -336,9 +336,9 @@ abstract class MMType # 'c' Must be a super-class of self # Example: # class A[E] - # class B[F] special A[F] - # class C[G] special B[String] - # class D special C[Float] + # class B[F] super A[F] + # class C[G] super B[String] + # class D super C[Float] # 'A[Int]'.upcast_for('A') -> 'A[Int]' # 'A[Int]'.upcast_for('B') -> abort # 'B[Int]'.upcast_for('B') -> 'B[Int]'