Original Post
I had the idea of making my new engine capable of allocating like 30 megs or however much memory specified at one point, and then requests for the memory could be made to a memory class with my own managed code. And while this will work all good and fine for malloc() and free(), what about new? This would not exactly work...
Is it valid to do something along the lines of (myClass *)malloc(sizeof(myClass));
And to then manually execute the constructor? Or better yet, I could overload the new and delete operators such as that they automatically request memory from my class instead of using malloc().
Would that work? Thanks