Re: use of = &new object versus = new object

From: Date: Mon, 11 Jul 2005 20:10:47 +0000
Subject: Re: use of = &new object versus = new object
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5982@lists.php.net to get a copy of this message
Trust me, you need to use &new in PHP-GTK 1. You may not see any problems right away, but they will crop up. -Andrei On Jul 11, 2005, at 11:42 AM, Madeleine D. wrote:
I think Jake has asked a very good question. Since he ran into his earlier problem and removed the reference on the new objects, I've taken to trying the same thing in my code. So far, I don't see a difference - either for performance or for causing any kind of problems. My screens seem to behave the same way, with or without the = & new. I understand about references and how they work, but as he points out, all of our GtkObjects are new items, and generally don't need references at that point. So why do we do it??


« previous php.gtk.general (#5982) next »