[svn r117] Initial working implementation of interfaces.

Groundwork for all the different types of class/interface casts laid out.
This commit is contained in:
Tomas Lindquist Olsen
2007-11-24 06:33:00 +01:00
parent 0a8ff5931a
commit b43f5729b0
18 changed files with 867 additions and 145 deletions
-8
View File
@@ -879,8 +879,6 @@ class TypeInfo_Class : TypeInfo
ClassInfo info;
}
/+
class TypeInfo_Interface : TypeInfo
{
char[] toString() { return info.name; }
@@ -944,8 +942,6 @@ class TypeInfo_Interface : TypeInfo
ClassInfo info;
}
+/
class TypeInfo_Struct : TypeInfo
{
char[] toString() { return name; }
@@ -1038,8 +1034,6 @@ class TypeInfo_Struct : TypeInfo
uint m_flags;
}
/+
class TypeInfo_Tuple : TypeInfo
{
TypeInfo[] elements;
@@ -1102,8 +1096,6 @@ class TypeInfo_Tuple : TypeInfo
}
}
+/
class TypeInfo_Const : TypeInfo
{
char[] toString() { return "const " ~ base.toString(); }