--- Paul Herring <[EMAIL PROTECTED]> wrote:
> On 12/30/06, Ray Devore <[EMAIL PROTECTED]>
> wrote:
> >
> > --- "Victor A. Wagner Jr." <[EMAIL PROTECTED]>
> wrote:
> 
> > Nico:
> 
> [malloc and new in the same program]
> 
> > > >What I wanted to express is that you should not
> > > >rely on such mixes to work under all
> circumstances.
> > >
> > > Again I say.  The standard REQUIRES it to work. 
> If
> > > you work with broken compilers, I can't offer
> any suggestions
> > >
> >
> > Victor,
> >
> > I am definitely NOT an expert on the standard. 
> Are
> > you saying the standard requires malloc() and
> delete
> > to work together, and it requires new and free()
> to
> > work together?
> 
> 
> What Victor is saying is that you should be able to,
> in the same (C++)
> program, free() malloc()'d memory, and delete new'd
> object.
> 
> As I've previously pointed out, free()ing new'd
> memory and deleteing
> malloc()'d memory is undefined behaviour.
> 
> 
> 
> -- 
> PJH

Thanks for the clarification.
Ray

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to