Mercurial > projects > ldc
comparison lphobos/internal/objectimpl.d @ 42:0b9b286b67b6 trunk
[svn r46] fix for shift operations
added a simple opengl binding in demos
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 15:16:11 +0200 |
parents | 3cfcb944304e |
children | 0c77619e803b |
comparison
equal
deleted
inserted
replaced
41:835320b88ad6 | 42:0b9b286b67b6 |
---|---|
134 { | 134 { |
135 // BUG: this prevents a compacting GC from working, needs to be fixed | 135 // BUG: this prevents a compacting GC from working, needs to be fixed |
136 //return cast(int)cast(void *)this - cast(int)cast(void *)o; | 136 //return cast(int)cast(void *)this - cast(int)cast(void *)o; |
137 | 137 |
138 assert(0, "need opCmp for class <no classinfo yet>"); | 138 assert(0, "need opCmp for class <no classinfo yet>"); |
139 return 0; | |
140 //throw new Error("need opCmp for class " ~ this.classinfo.name); | 139 //throw new Error("need opCmp for class " ~ this.classinfo.name); |
141 } | 140 } |
142 | 141 |
143 /** | 142 /** |
144 * Returns !=0 if this object does have the same contents as obj. | 143 * Returns !=0 if this object does have the same contents as obj. |
218 * The class must either have no constructors or have | 217 * The class must either have no constructors or have |
219 * a default constructor. | 218 * a default constructor. |
220 * Returns: | 219 * Returns: |
221 * null if failed | 220 * null if failed |
222 */ | 221 */ |
223 static Object factory(char[] classname) | 222 /+static Object factory(char[] classname) |
224 { | 223 { |
225 /+auto ci = ClassInfo.find(classname); | 224 auto ci = ClassInfo.find(classname); |
226 if (ci) | 225 if (ci) |
227 { | 226 { |
228 return ci.create(); | 227 return ci.create(); |
228 } | |
229 return null; | |
229 }+/ | 230 }+/ |
230 return null; | |
231 } | |
232 } | 231 } |
233 | 232 |
234 /+ | 233 /+ |
235 extern (C) void _d_notify_release(Object o) | 234 extern (C) void _d_notify_release(Object o) |
236 { | 235 { |