Re: [AD] [OT] new operator |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Vincent Penquerc'h wrote:
> They are two different things, I think.
> void * operator new (size_t sz)
> is the global new operator used to allocate memory, and
> float *f = new float[10];
> uses the new keyword, which calls the new operator to allocate the
> memory, then calls whatever ctors are needed.
That sounds very sensible. Thanks for the explanation :-)
Hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
Unix is user friendly. It's just very particular about who
it's friends are.
Hein Zelle hein@xxxxxxxxxx
http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<