This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
OT: new vs malloc, was BUG - Cygwin to GNU CC compatibility
- From: Chan Kar Heng <karheng at softhome dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 07 Aug 2002 01:25:42 +0800
- Subject: OT: new vs malloc, was BUG - Cygwin to GNU CC compatibility
- References: <F1813ooYFbW7xV2zLwF0001ed5a@hotmail.com>
greetings.
sorry, please don't fry me for OT post. :)
just a short answer (perhaps private) would do for me.
<snip>
>Well, in C++, as opposed to on earth, I suppose, you're encouraged to
>use new and delete for all memory management in preference to malloc
>and free. Note that in C++, a struct and a class are exactly the same
</snip>
i'm one of those still actively using malloc/free as i often use realloc
too.
i'd gladly use new and delete if i could find an equivalent of realloc()..
... any advice?
rgds,
kh
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/