Mail Archives: djgpp/1999/12/15/07:18:16
Alexey Zakhlestine wrote:
>
> Well.... astually AFAIK "free" and "malloc" are C-routines.... not C++
>
> In C++ you should use new/delete
It may be preferable in most cases to use new and delete in C++, that
first line has an extremely foul taste. The C++ standard includes free
and malloc as functions with full citizenship, prototyped in the C++
header <cstdlib>, which header does not exist in C (where <stdlib.h>
does exist).
--
Martin Ambuhl mambuhl AT earthlink DOT net
What one knows is, in youth, of little moment; they know enough who
know how to learn. - Henry Adams
A thick skin is a gift from God. - Konrad Adenauer
__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com
- Raw text -