Eliminate class allocators and deallocators?

Denis Koroskin 2korden at gmail.com
Wed Oct 7 14:54:35 PDT 2009


On Wed, 07 Oct 2009 23:00:06 +0400, Sean Kelly <sean at invisibleduck.org>  
wrote:

> auto x = cast(MyClass) malloc(MyClass.classinfo.init.length);

I would expect a dynamic cast to occur at this line. Which will either  
result in an access violation (since you are trying to cast a garbage to  
an object) or result in a null being returned.



More information about the Digitalmars-d mailing list