comparison dmd/String.d @ 45:ccbc1e0bb3f0

StringExp.equals implemented int equals(Object o) -> bool equals(Object o)
author korDen
date Sat, 21 Aug 2010 07:26:20 +0400
parents 10317f0c89a5
children ee3a9f34dc48
comparison
equal deleted inserted replaced
44:ea4769860460 45:ccbc1e0bb3f0
66 uint len() 66 uint len()
67 { 67 {
68 return str.length; 68 return str.length;
69 } 69 }
70 70
71 int 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 compare(Object obj)