comparison dmd/String.d @ 68:ee3a9f34dc48

final bits of codegen implementation to compile Phobos
author korDen
date Tue, 24 Aug 2010 16:44:34 +0400
parents ccbc1e0bb3f0
children 2e2a5c3f943a
comparison
equal deleted inserted replaced
67:f708f0452e81 68:ee3a9f34dc48
71 bool equals(Object obj) 71 bool equals(Object obj)
72 { 72 {
73 return str == (cast(String)obj).str; 73 return str == (cast(String)obj).str;
74 } 74 }
75 75
76 int compare(Object obj) 76 int opCmp(Object obj)
77 { 77 {
78 return cmp(str, (cast(String)obj).str); 78 return cmp(str, (cast(String)obj).str);
79 } 79 }
80 80
81 string toChars() 81 string toChars()