ANN: WeakObjectReference - class to hold weak references
Myron Alexander
someone at somewhere.com
Sat Jun 23 06:46:54 PDT 2007
Hello.
There is a bug in the version. I just noticed it now. When I rewrote the
test code into a class, I accidentally left out the check on the malloc
return. I have to go somewhere now so I'll fix it later.
After:
weakObjRef = cast(T**)stdlib.malloc (p.sizeof);
just add:
if (null == weakObjRef) {
_d_OutOfMemory ();
}
and then import std.outofmemory.
Sorry,
Myron.
More information about the Digitalmars-d-announce
mailing list