On Thu, 6 Mar 2003, Ian Molton wrote:
> 
> foo=malloc(sizeof(thing))
> if(!foo)
>    ...

Well, the advantage of "new" is that it will run all the constructors etc 
automatically, so it's potentially a simpler allocation than C.

If your point is that it's certainly no more complex than the C sequence, 
then you're obviously right ;)

                Linus



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to