Design
let397.txt
Associated article: Letters
Tags: Design
_Letters to the Editor_
by Poul A. Costinsky
class Foo
{
public:
Foo();
~Foo();
}
// allocation
Foo* pBar = (Foo *)malloc(10*sizeof(Foo));
// construction
for (i = 0; i< 10; i++)
(pBar + i)->Foo::Foo();
// reallocation
pBar = (Foo *)realloc(pBar, 11*sizeof(Foo));
// construction ...


