May 17, 2004 Custom deallocators not working properly | ||||
---|---|---|---|---|
| ||||
If my class has new() and delete(), it throws an exception when I explicitly delete an object. delete() gets called fine if there isn't new(), so it looks like the code that calls delete() is expecting memory from the built-in new(). An example is the Foo class under "Explicit Class Instance Allocation" in memory.html (I also noticed the code is partially outdated, it uses gc instead of std.gc). |
Copyright © 1999-2021 by the D Language Foundation