digitalmars.D.bugs - Custom deallocators not working properly
- Vathix (6/6) May 16 2004 If my class has new() and delete(), it throws an exception when I explic...
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).
May 16 2004