Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/lphobos/internal/objectimpl.d Fri Oct 19 07:45:35 2007 +0200 +++ b/lphobos/internal/objectimpl.d Fri Oct 19 15:16:11 2007 +0200 @@ -136,7 +136,6 @@ //return cast(int)cast(void *)this - cast(int)cast(void *)o; assert(0, "need opCmp for class <no classinfo yet>"); - return 0; //throw new Error("need opCmp for class " ~ this.classinfo.name); } @@ -220,15 +219,15 @@ * Returns: * null if failed */ - static Object factory(char[] classname) + /+static Object factory(char[] classname) { - /+auto ci = ClassInfo.find(classname); + auto ci = ClassInfo.find(classname); if (ci) { return ci.create(); - }+/ + } return null; - } + }+/ } /+